Is there an R package that can recreate a hierarchal tree diagram of cells with size and colour representing different variables?
0
0
Entering edit mode
2.5 years ago
N ▴ 10

I'm trying to generate a specific type of plot and would appreciate if anyone could point me towards the right direction in terms of what R package is capable of making this type of plot. Basically I'm looking at Different hematopoietic cell types and would like to have all the cell types form a tree with HSCs at the top of the tree and mature blood cells as the roots/branch ends.

On top of that layout I'd like the colours to represent one variable (Gene expression for a specific gene) and have size represent a different variable (such as DNA methylation).

My example dataset is below

Example Data

I've posted an example of what I'm trying to recreate in R and would love to know if it is possible and how I would construct such a graph using my data frames. The example figure is from Bloodspot but I'm trying to recreate it with my own data and in R. This graph was produced in Javascript specifically javascript library D3, but given I don't know javascript and only know R could I recreate this in R?

Example of what I'm trying to recreate

I looked at some Tree packages but they are meant for phylogenetic data while I simply want to make a tree to show the relationship between the cells and have size and colour overlaid on top to show 2 separate variables.

Thank You!

plot • 735 views
ADD COMMENT

Login before adding your answer.

Traffic: 2177 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6