Description Usage Arguments Value
View source: R/tree-force-layout.R
This function can be used in addition to treeForceTranslateCoords
in order to fine-tune the presentation of a force-directed layout. For instance,
this can be used to achieve an improved 2D visualization by modifying overlapping
portions of the layout.
1 2 3 4 5 6 7 8 9 10 |
object |
An URD object |
cells |
(Character vector) Cells to modify (Default |
seg |
(Character) Instead of specifying cells, just grab all cells from this segment and downstream. Ignored if |
angle |
(Numeric) Angle to rotate |
axis |
(Character: "x", "y", "z") Axis around which to rotate |
around.cell |
(Character or Numeric) If a character, then the name of a cell to rotate around. If numeric, then will choose the Nth cell by pseudotime. (This can be helpful for rotating a segment around its base to spread segments of the tree apart more. If |
throw.out.cells |
(Numeric) Throw out the youngest N cells in pseudotime |
pseudotime |
(Character) Pseudotime (i.e. column name of |
An URD object with the coordinates of some cells in @tree$walks.force.layout
modified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.