surfaceTreePlot
produces a customized plot.phylo
figure, and surfaceTraitPlot
produces a scatterplot of trait values and optima
surfaceTreePlot(tree, hansenfit, cols = NULL, convcol = TRUE, labelshifts = FALSE, ...)
surfaceTraitPlot(dat, hansenfit, whattraits = c(1, 2), cols = NULL,
convcol = TRUE, pchs = c(21, 21), cex.opt = 2.5, optellipses = FALSE,
ellipsescale = 1, flatten1D = FALSE, add = FALSE, ypos = 0, plotoptima = TRUE, plottraits = TRUE, y.lim = NULL, x.lim = NULL,
y.lab = NULL, x.lab = NULL, ...)
phylo
format
fit
and savedshifts
. This may be the list produced by any one iteration of surfaceForward
or surfaceBackward
, or the list produced by surfaceSimulate
c(1,2)
)
surfaceTreePlot
or coloring symbols in surfaceTraitPlot
. One color should be provided per regime in hansenfit
; if cols=NULL
the function will attempt an appropriate default
TRUE
)
FALSE
)
surfaceTraitPlot
; both default to 21 (filled circles)
surfaceTraitPlot
; defaults to 2.5 (symbols representing data points can be specified with cex
)
pchs
and cex.opt
. The ellipses are drawn as the optima +/- the standard deviation of the stationary distribution of the inferred OU process: sigma_squared/(2*alpha), multiplied by ellipsescale
surfaceTraitPlot
is called for a single trait; defaults to FALSE
surfaceTraitPlot
graph instead of creating a new one; defaults to FALSE
flatten1D = TRUE
surfaceTraitPlot
; defaults to TRUE
surfaceTraitPlot
; defaults to TRUE
plot
or points
functions
optellipses=TRUE
, note that in some cases (e.g. if alpha is very small) the ellipses will not convey useful information. If trait data are unidimensional, or if whattraits
is provided as a single integer, data will be plotted on the x-axis and the y-axis will separate different regimes (and ellipse width in the y-dimension will not be meaningful)
Mahler, D.L., Ingram, T., Revell, L.J. & Losos, J.B. (2013) Exceptional convergence on the macroevolutionary landscape in island lizard radiations. Science 341: 292-295.
surfaceForward
, surfaceBackward
, surfaceSimulate
, surfaceSummary
, surfaceAICPlot