Description Usage Arguments Details Examples
Creates an image plot with a legend of a covariate in a mask.
1 2 3 |
mask |
object of class |
covariate |
value of covariate on mask points: one of the column names
of the data frame |
contours |
logical to plot contours on top of image plot. |
xlab |
label for x-axis. If NULL, prints "x". |
ylab |
label for x-axis. If NULL, prints "y". |
ppoly |
logical for whether the bounding polygon should be plotted (if mask has a ‘polygon’ attribute), |
polycol |
color of bounding polygon line. |
main |
main title of plot. |
... |
other arguments to |
See image.plot
and image.default
.
1 2 3 4 5 6 7 8 9 10 | data(Boland.leopards1)
data(possums)
# plot image of distance to urban areas, with contours, and plot traps on top of it
image(Boland.mask1, "dist2.Urban", asp = 1, axes = FALSE, xlab = "Easting", ylab = "Northing", main = "Distance to Urban")
plot(traps(Boland.CH1), add = TRUE)
# a plot with different colour scheme, no contours and 1:1 aspect ratio:
image(possummask,"d.to.shore", col = terrain.colors(30), contours = FALSE)
plot(traps(possumCH), add = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.