Padding taxa labels
This function add padding character to the left side of taxa labels.
label_pad(label, justify = "right", pad = "·")
label |
taxa label |
justify |
should a character vector be left-justified, right-justified (default), centred or left alone. |
pad |
padding character (default is a dot) |
Taxa labels with padding characters added
Guangchuang Yu and Yonghe Xia
library(ggtree) set.seed(2015-12-21) tree <- rtree(5) tree$tip.label[2] <- "long string for test" label_pad(tree$tip.label)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.