Tuesday, May 14, 2019

Simple user-requested update to fancyTree(..., type="extinction")

I just pushed a small update to the phytools function fancyTree for type="extinction" in response to a user request.

This option in the function does a very simple visualization of a tree with the edges leading to extinct taxa highlighted using different colors and line types. The new functionality permits the user to turn on or off the tip labels (argument ftype, following other phytools functions), to size the labels (fsize), to adjust the width of the plotted edges of the tree (lwd), and to change the colors of the extant & extinct lineages (colors). E.g.:

library(phytools)
tree<-pbtree(b=1,d=0.4,t=6)
fancyTree(tree,colors=c("blue","red"),
    lwd=1,ftype="off")

plot of chunk unnamed-chunk-1

Just update phytools from GitHub using devtools & it should work!

No comments:

Post a Comment

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