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.labeldata.frame with columns named 'col' and 'pch'
corresponding to elements of unique(groups)set.seed)plot.phyloprettyTree adds to a plot drawn by plot.phyloVectors specifying annotation should be in the order of row or column
labels of the distance matrix used to generate x.
plot.phylolibrary(ape)
data(seqs)
data(seqdat)
prettyTree(nj(dist.dna(seqs)), groups=seqdat$tax_name)Run the code above in your browser using DataLab