Monday, August 10, 2015

Neglected phytools functions I: roundPhylogram

I'm not sure that this is destined to become a series, but in performing my latest “major”/minor update to phytools (and seeing as so doing meant modifying almost every source file in the phytools package), I stumbled across more than a few phytools functions that I'm not sure I've ever seen used outside the pages of this blog.

Here's one that I particularly like: roundPhylogram.

This function plots a tree with rounded (parabolic, more precisely) edges. Here's what I mean by that:


plot of chunk unnamed-chunk-1

As is commonly true, we get a nicer looking figure - that is, one without aliasing - if we export directly to a PDF:

## windows 
##       2

which can be seen here.

If we want to ignore branch lengths, as is commonly done for this type of tree plot - well, we might call that a round


plot of chunk unnamed-chunk-3

In fact - this function has been used once in publication, to my knowledge - though I'm not sure it counts if you use it yourself…..

1 comment:

  1. I forgot that the function has an argument, type, which when set to type="cladogram" does the same thing as roundCladogram, above.


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