Last data update: 2014.03.03

R: Contour plot
contourR Documentation

Contour plot

Description

Contour plot of a RasterLayer from a DBBMM object.

Usage

  ## S4 method for signature '.UD'
contour(x, ...)
  ## S4 method for signature '.UDStack'
contour(x, ...)

Arguments

x

an object of the DBBMM-class or DBBMMStack-class

...

additional arguments like levels and nlevels, see details

Details

The contour function creates a shape of the area in which the animal can be found by a certain probability (i.e. the 90% contour describes the area in which the animal can be found with the 90% probability). One or several probabilities can be set with levels (numeric or vector of values between 0 and 1). If no value is set all contour lines are returned. You can also use nlevel to set a number of fixed distance levels.
To change parameters of the contour or line plotting use the usual parameters of the plot function (like lwd, lty, and so on). You can also add the contour lines to a plot by adding add = TRUE.

Author(s)

Marco Smolla

Examples

data(leroydbbmm)
## to add a 50% and 95% contour to a plot from DBBMM object dbbmm
plot(leroydbbmm)
contour(leroydbbmm, levels=c(.5,.95), add=TRUE)

Results