Wednesday, February 3, 2016

A bit more user control for phylo.heatmap

I just added, in what might be the most trivial update possible, user control of the plotted phylogeny to phylo.heatmap. This will allow the user to control just two additional features: the line widths (using the optional argument lwd) and the font type (ftype).

Here is a demo:

library(phytools)
phylo.heatmap(tree,X,labels=FALSE,ftype="b",lwd=3,standardize=TRUE)

plot of chunk unnamed-chunk-1

BTW, phytools can be updated by running the following lines in a clean R session:

library(devtools)
install_github("liamrevell/phytools")

The data for this example were simulated using the following code:

tree<-pbtree(n=26,tip.label=LETTERS)
X<-fastBM(tree,nsim=10)

No comments:

Post a Comment