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)

4 comments:

  1. This is fantastic! I have been looking for something like this for a while. Great work!

    ReplyDelete
  2. This looks amazing and soo colorful! I wish I had any idea of what this is and for what purpose lol
    Do you think anyone from the best service for college paper writing http://ratedbystudents.com/services knows anything about it? I will be needing an essay.

    ReplyDelete
  3. Is it possible to remove tips from the heatmap tree? I have tried:
    drop.tip(tree1,"tiplabel",trim.internal = TRUE)
    from ape, where tiplabel is the tip to remove, then re-ran phylo.heatmap, but the tip remains.
    Thanks.

    ReplyDelete
  4. This is a misunderstanding of what drop.tip does. Try adding the optional argument ftype="off" to your phylo.heatmap function call. -- Liam

    ReplyDelete

Note: due to the very large amount of spam, all comments are now automatically submitted for moderation.