label_pad {ggtree} | R Documentation |
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
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)