Description Usage Arguments Value Author(s) Examples
View source: R/plot_JAGSmask.R
A plotting method for class JAGSmask
1 2 |
x |
An object of class |
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 |
Returns nothing.
Mike Meredith
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.