plot.phylo
to draw a
phylogenetic tree with additional annotation.prettyTree(x, groups, fill,
X, O, indices, labels,
show = rep(TRUE, length(x)),
largs = list(cex = 0.75, bty = "n", yjust = 0.5),
parargs = list(mar = c(bottom = 5, left = 2, top = 2,
right = ifelse(is.null(largs), 2, 8)),
xpd = NA),
pointargs = list(), glyphs,
shuffleGlyphs = NA, ...)
x <- nj(ddist)
x$tip.label
data.frame
with columns named 'col' and 'pch'
corresponding to elements of unique(groups)
set.seed
)plot.phylo
prettyTree
adds to a plot drawn by plot.phylo
Vectors specifying annotation should be in the order of row or column
labels of the distance matrix used to generate x
.
plot.phylo
library(ape)
data(seqs)
data(seqdat)
prettyTree(nj(dist.dna(seqs)), groups=seqdat$tax_name)
Run the code above in your browser using DataLab