label_pad | R Documentation |
This function adds padding characters to the left side of taxa labels, adjust their length to the longest label.
label_pad(label, justify = "right", pad = "ยท")
label |
taxa label |
justify |
should a character vector be right-justified (default), left-justified, centred or left alone. |
pad |
padding character (defaults to dots) |
Taxa labels with padding characters added
Guangchuang Yu and Yonghe Xia
https://groups.google.com/g/bioc-ggtree/c/INJ0Nfkq3b0/m/lXefnfV5AQAJ
library(ggtree)
set.seed(2015-12-21)
tree <- rtree(5)
tree$tip.label[2] <- "long string for test"
label_pad(tree$tip.label)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.