Tuesday, March 19, 2013

Anolis phenogram of body size using spread.labels

The post title pretty much says it all. I was playing with the new version of the phytools function phenogram and here is the result - a traitgram of (log) body-size in Greater Antillean Anolis in which you can actually read the tip labels:

Here's the code:

phenogram(tree,log(svl),link=0.2*max(nodeHeights(tree)),
  spread.labels=T,spread.cost=c(1,0),fsize=0.7,
  ylab="log(SVL)", xlab="relative time",color="blue",
  offset=0)

1 comment: