contour: Contour plot

Description Usage Arguments Details Author(s) Examples

Description

Contour plot of a RasterLayer from a DBBMM object.

Usage

1
2
3
4
  ## 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

1
2
3
4
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)

Example output

Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.2-10, (SVN revision 673)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
 Path to GDAL shared files: /usr/share/gdal/1.10
 Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
 Path to PROJ.4 shared files: (autodetected)
WARNING: no proj_defs.dat in PROJ.4 shared files
 Linking to sp version: 1.2-3 
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files

move documentation built on Jan. 16, 2017, 2:22 a.m.