Description Usage Arguments Value Examples
View source: R/tree-force-layout.R
Finds cells near the end of each tip, and attempts to calculate a vector from
them to determine a good location for a label near each tip. Called automatically
by treeForceDirectedLayout
, but can be re-run if needed.
1 | treeForcePositionLabels(object, label.spacing = 5)
|
object |
An URD object |
label.spacing |
(Numeric) Length of vector from final cell in each tip to label |
A data.frame with rows as tips, and columns containing labels and coordinates.
This is normally stored in @tree$walks.force.labels
.
1 | object@tree$walks.force.labels <- treeForcePositionLabels(object, label.spacing=2) # Move labels closer
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.