View source: R/add.data.to.tips.R
add.data.to.tips | R Documentation |
This function is useful for adding data from one or more columns of a matrix to the tip labels of a tree
add.data.to.tips(tr, datMat, delim = "[_|]", returnNum = 1:2, returnDelim = "_",
addCols = c("GROUP"), uniques = F, addDelim = "|", reorderTree = TRUE, ...)
tr |
A |
datMat |
A matrix with row names equal to the tips you want to match in the tree, after passing
the tip labels through label.elements, and columns you want to add indicated
using |
delim |
Delimiter for elements of the tip labels in the tree passed to the function, which will be used by label.elements to split the tip labels |
returnNum |
The delimited elements of the tree tip labels that you want back from label.elements |
returnDelim |
The delimiter to use in rebuilding the tip labels in label.elements |
addCols |
Which columns of |
uniques |
A boolean: if |
addDelim |
The delimiter to go between the tip label and the elements being added |
reorderTree |
A boolean: if |
... |
Additional arguments passed along to label.elements |
A list:
tr.relabelled |
An object of class |
labelMat |
An object of class |
Andrew Hipp
label.elements
color.tips.by.element
section.coloring
tidyName
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.