image.mask: Image plot of mask object.

Description Usage Arguments Details Examples

Description

Creates an image plot with a legend of a covariate in a mask.

Usage

1
2
3
## S3 method for class 'mask'
image(mask, covariate = NULL, contours = TRUE, xlab = NULL,
  ylab = NULL, main = NULL, ppoly = TRUE, polycol = "red", ...)

Arguments

mask

object of class mask.

covariate

value of covariate on mask points: one of the column names of the data frame covariates(mask).

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 image.plot (which includes arguments to image.default).

Details

See image.plot and image.default.

Examples

 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)

david-borchers/secrgam documentation built on May 14, 2019, 9:30 p.m.