Learn R Programming

analogue (version 0.17-7)

plot.sppResponse: Plot species responses along gradients or latent variables

Description

Observed abundances and fitted response curves along

Usage

# S3 method for sppResponse
plot(x,
     which = seq_along(x),
     display = c("observed", "fitted"),
     xlab = "Gradient", ylab = "Abundance",
     main = NULL,
     lcol = "red",
     lwd = 2,
     ...)

Value

One or more plots, drawn on the current device.

Arguments

x

an object of class "sppResponse".

which

numeric or logical vector; which species (components of x) to plot.

display

character; plot the observed data or the fitted species response curve or both?

xlab, ylab, main

titles for the x and y axis label and the main title. If main is NULL, suitable main titles are taken from x.

lwd

numeric; width of the line used to draw the fitted species response function if drawn.

lcol

the colour to use to draw the fitted species response.

...

graphical arguments passed plot and lines used internally.

Author

Gavin L. Simpson

Details

Currently, no attempt is made to split the device into an appropriate number of panels. This is up to the user to decide. See the Examples section of sppResponse for one way to handle this.

See Also

sppResponse for a complete example using fitted responses along principal curves.