This operator attaches annotation data to a ggtree or ggsc graphic object
Arguments
- p
ggplot2 object, such as ggtree or ggsc graphic object.
- data
data.frame, which must contains a column of
node, or the first column of taxa labels, whenpis aggtreeobject. Or it must contains columns of.BarcodeID, whenpis aggscobject andp$datadoes not contain a column offeatures, if it contains, thedatamust also contains a column offeatures.