plot.CAP | R Documentation |
Create plots used to inspect one or more cumulative abundance profiles.
## S3 method for class 'CAP' plot(x, sizes=NULL, species=NULL, plots=NULL, switchAxes=FALSE, add=FALSE, drawAxes = TRUE, xlab="", ylab="", type="s",...) ## S3 method for class 'stratifiedvegdata' plot(x, sizes=NULL, species=NULL, plots=NULL, switchAxes=FALSE, add=FALSE, drawAxes = TRUE, xlab="", ylab="", type="s",...)
x |
An object returned from function |
sizes |
A vector containing the size values associated to each size class. If |
species |
A vector of strings indicating the species whose profile is to be drawn. If |
plots |
A vector indicating the plot records whose profile is to be drawn. Can be a |
switchAxes |
A flag indicating whether ordinate and abscissa axes should be interchanged. |
add |
A flag indicating whether profiles should be drawn on top of current drawing area. If |
drawAxes |
A flag indicating whether axes should be drawn. |
xlab |
String label for the x axis. |
ylab |
String label for the y axis. |
type |
Type of plot to be drawn ("p" for points, "l" for lines, "s" for steps, ...). |
... |
Additional plotting parameters. |
Miquel De Cáceres, CREAF
De Cáceres, M., Legendre, P. & He, F. (2013) Dissimilarity measurements and the size structure of ecological communities. Methods in Ecology and Evolution 4: 1167-1177.
CAP
## Load stratified data data(medreg) ## Check that 'medreg' has correct class class(medreg) ## Create cumulative abundance profile (CAP) for each plot medreg.CAP = CAP(medreg) ## Draw the stratified data and profile corresponding to the third plot plot(medreg, plots="3") plot(medreg.CAP, plots="3") ## Look at the plot and CAP of the same plot medreg[["3"]] medreg.CAP[["3"]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.