To see how these options can be used, lets first plot using the default values. The current tree has a three state mapped character, with states 1, 2, and 3.
> cols<-c("blue","yellow","red"); names(cols)<-c(1,2,3)
> plotSimmap(mtree,cols)
The first line is to create a vector with the colors we want; and the second line plots the tree. We get:

Now, let's get rid of the circles and plot the lines a little bit more thickly. (This is more like what we'd see if we used FigTree, for instance.) We can change the font to italics as well if we want:
> plotSimmap(mtree,cols,lwd=5,pts=F,ftype="i")
Now we get:

Updates are in the newest version (v0.4) of this function as well in the latest alpha version of the "phytools" package (available here)
No comments:
Post a Comment
Note: due to the very large amount of spam, all comments are now automatically submitted for moderation.