plot.predcoca | R Documentation |
Produces biplots of the response and predictor from the results of a predictive co-correspondence analysis.
## S3 method for class 'predcoca'
plot(x,
which = "response",
choices = 1:2,
display = c("species", "sites"),
type,
xlim = NULL,
ylim = NULL,
main = "",
sub = "",
ylab, xlab,
ann = par("ann"),
axes = TRUE,
...)
x |
an object of class |
which |
character; should the response or predictor scores be
plotted. Can be specified in several ways: response choices
are one from |
choices |
a vector of length 2 indicating which predictive CoCA axes to plot. |
display |
which sets of scores are drawn. See
|
type |
one of |
xlim , ylim |
limits for the x and y axes. If non supplied, suitable limits will be determined from the data. |
xlab , ylab |
labels for the x and y axes. If non supplied suitable labels are formed from the result object. |
main , sub |
the main and sub titles for the plot. |
ann |
logical, if TRUE plots are annotated and not if FALSE, currently ignored. |
axes |
a logical value indicating whether both axes should be drawn on the plot. |
... |
other graphical parameters as in 'par' may also be passed as arguments. |
Gavin L. Simpson.
Ter Braak, C.J.F and Schaffers, A.P. (2004) Co-Correspondence Analysis: a new ordination method to relate two community compositions. Ecology 85(3), 834–846
coca
, plot.default
## predictive CoCA
data(beetles)
data(plants)
## log transform the beetle data
beetles <- log(beetles + 1)
## predictive CoCA using SIMPLS and formula interface
bp.pred <- coca(beetles ~ ., data = plants)
## draw the plot for the response scores
plot(bp.pred)
## plot of both
layout(matrix(1:2, ncol = 2))
plot(bp.pred, which = "response", main = "Beetles")
plot(bp.pred, which = "predictor", main = "Plants")
layout(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.