I hope you are going well. I wanted to propose to you this very small PR. Free to you to take it or not :)
I have figured out that in the plotPieNet function, if one wants to set two Roots, LayOut = "tree", TreeRoot = c(root1, root2), then the function will consider that the two roots begin at the exact same level (or same pseudotime if you like) as illustrated below:
But you can actually change this behaviour in the igraph::layout_as_tree function if you permit it to set a rootlevel argument. For instance: setting the function to igraph::layout_as_tree(graph = igraph::as.undirected(Net, mode = 'collapse'), root = TreeRoot, rootlevel = c(6, 1)) will eventually lead to this plot
Perhaps could this small change be useful for users dealing with converging roots in their trajectories (i.e me ahah !)...
Dear Luca,
I hope you are going well. I wanted to propose to you this very small PR. Free to you to take it or not :)
I have figured out that in the
plotPieNet
function, if one wants to set two Roots,LayOut = "tree", TreeRoot = c(root1, root2)
, then the function will consider that the two roots begin at the exact same level (or same pseudotime if you like) as illustrated below:But you can actually change this behaviour in the
igraph::layout_as_tree
function if you permit it to set arootlevel
argument. For instance: setting the function toigraph::layout_as_tree(graph = igraph::as.undirected(Net, mode = 'collapse'), root = TreeRoot, rootlevel = c(6, 1))
will eventually lead to this plotPerhaps could this small change be useful for users dealing with converging roots in their trajectories (i.e me ahah !)...
Anyway, I wish you a nice evening !
See you around ;)
Charles