plot.JAGSmask: A plotting method for class 'JAGSmask'

Description Usage Arguments Value Author(s) Examples

View source: R/plot_JAGSmask.R

Description

A plotting method for class JAGSmask

Usage

1
2
## S3 method for class 'JAGSmask'
plot(x, col, verify = TRUE, ...)

Arguments

x

An object of class JAGSmask as produced by convertMask.

col

A vector of colours for habitat classes. Note that traps are plotted in red.

verify

If TRUE, the function will check that traps are inside the area of suitable habitat defined by the habitat matrix.

...

Other graphical parameters to pass to image.default.

Value

Returns nothing.

Author(s)

Mike Meredith

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(simSCR)
plot(simSCR$JAGSmask)  # habitat yellow, non-habitat grey.
# add a core
Amask <- addCore(simSCR$JAGSmask, type="poly", poly=simSCR$Arkadia)
plot(Amask)  # core yellow, non-core habitat white.

# Create a mask from a raster stack
require(raster)
RSmask <- with(simSCR, convertRaster(patchRS, traps, plot=TRUE)) # non-habitat black
  # only the first covariate layer is plotted
ARSmask <- addCore(RSmask, type="poly", poly=simSCR$Arkadia) # non-core grey

mikemeredith/makeJAGSmask documentation built on May 19, 2021, 1:10 a.m.