plotRECON | R Documentation |
Plots maximum likelihood ancestral state estimates on tree
plotRECON(phy, likelihoods, piecolors=NULL, cex=0.5, pie.cex=0.25, file=NULL, height=11, width=8.5, show.tip.label=TRUE, title=NULL, ...)
phy |
a phylogenetic tree, in |
likelihoods |
likelihoods for ancestral states (see Details). |
piecolors |
a vector of colors for states. |
cex |
specifies the size of the font for labels (if used). |
pie.cex |
specifies the size of the symbols to plot on tree. |
file |
filename to which a pdf is saved. |
height |
height of plot. |
width |
width of plot. |
show.tip.label |
a logical indicating whether to draw tip labels to tree. The default is |
title |
an optional title for the plot. |
... |
Additional arguments to be passed to the plot device |
Plots ancestral state estimates on provided tree. The likelihoods
can be the states
of an object of class rayDISC
or class corDISC
, or the lik.anc
of an object of class ace
(from the ape
package).
A plot indicating the maximum likelihood ancestral states at each internal node.
Jeffrey C. Oliver
corDISC
, rayDISC
data(rayDISC.example) ## Perform ancestral state estimation, using a single rate of evolution and marginal ## reconstruction of ancestral states recon <- rayDISC(rayDISC.example$tree,rayDISC.example$trait,model="ER", node.states="marginal") ## Plot reconstructions on tree plotRECON(rayDISC.example$tree,recon$states,title="rayDISC Example")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.