plotSimmap(tree, colors=NULL, fsize=1.0, ftype="reg", lwd=2, pts=FALSE,
node.numbers=FALSE, mar=NULL, add=FALSE, offset=NULL, direction="rightwards",
type="phylogram", setEnv=TRUE, part=1.0, xlim=NULL, ylim=NULL,
nodes="intermediate", tips=NULL, maxY=NULL, hold=TRUE, split.vertical=FALSE)
"plot"(x, ...)
"plot"(x, ...)read.simmap & make.simmap).Examples."reg", "i" (italics), "b" (bold), or "bi" (bold-italics).FALSE.par. If not specified, the default margins are [0.1,0.1,0.1,0.1].TRUE) or create a new plot (FALSE, the default).densityMap."rightwards" (the default) and "leftwards". Note that for some reason that is not totally clear, node.numbers=TRUE does not work for direction="leftwards"."phylogram" or "fan". Only a subset of options are presently available for type="fan"..PlotPhyloEnv. Setting this to TRUE (the default) will allow compatibility with ape labeling functions such as nodelabels.type="fan" indicating what fraction of the full circular tree to use as plotting area. For instance, part=0.5 will plot a half fan phylogeny. It also affects the axis scaling used."intermediate", "centered", "weighted", or "inner". So far only works for type="phylogram".1:N for N tips in the tree.Ntip(tree).hold=TRUE."simmap" or "multiSimmap".plotSimmap."_" is automatically swapped for a space in tip labels, as in plot.phylo.
Felsenstein, J. (2004) Inferring Phylogenies. Sinauer.
Huelsenbeck, J. P., R. Neilsen, and J. P. Bollback. (2003) Stochastic mapping of morphological characters. Systematic Biology, 52, 131-138.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
densityMap, make.simmap, read.simmap
# simulate a mapped tree
Q<-matrix(c(-2,1,1,1,-2,1,1,1,-2),3,3)
rownames(Q)<-colnames(Q)<-letters[1:3]
tree<-sim.history(pbtree(n=100,scale=1),Q)
cols<-setNames(c("blue","red","green"),letters[1:3])
# plot the mapping
plot(tree,cols,ftype="i",fsize=0.7)
Run the code above in your browser using DataLab