nameSegments: Name Segments

Description Usage Arguments

View source: R/tree-tips.R

Description

This stores the names of tips for use in plotting. segment.names is used on dendrogram-style plots (plotTree). They are also used on force-directed layout plots plotTreeForce, unless short.names is set, in which case those shorter names are used. (Labels are horizontal on the force-directed layout, so it is our recommendation that a series of 2-4 letter abbreviations for each cell population are used.) For terminal segments of the tree that are not given a name, this function will determine their children and (if named) combine the names of the segment's children. (This is in case, for instance, two populations immediately fuse into a single segment.) Segment numbers to use in this function are easily determined using plotTree with label.segments=T.

Usage

1
nameSegments(object, segments, segment.names, short.names = NULL, sep = "+")

Arguments

object

An URD object

segments

(Character Vector) Segment numbers to name

segment.names

(Character Vector) Names to use for segment

short.names

(Character Vector, optional) Short names to use when labeling tips in 3D layout

sep

(Character) Separator to use for combining tip names, if needed.


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