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
.
1 | nameSegments(object, segments, segment.names, short.names = NULL, sep = "+")
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.