treeForcePositionLabels: Determine position for segment labels in force-directed...

Description Usage Arguments Value Examples

View source: R/tree-force-layout.R

Description

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.

Usage

1
treeForcePositionLabels(object, label.spacing = 5)

Arguments

object

An URD object

label.spacing

(Numeric) Length of vector from final cell in each tip to label

Value

A data.frame with rows as tips, and columns containing labels and coordinates. This is normally stored in @tree$walks.force.labels.

Examples

1
object@tree$walks.force.labels <- treeForcePositionLabels(object, label.spacing=2) # Move labels closer

farrellja/URD documentation built on June 17, 2020, 4:48 a.m.