Learn R Programming

mgcv (version 1.9-4)

polys.plot: Plot geographic regions defined as polygons

Description

Produces plots of geographic regions defined by polygons, optionally filling the polygons with a color or grey shade dependent on a covariate.

Usage

polys.plot(pc,z=NULL,scheme="heat",lab="",...)

Arguments

Value

Simply produces a plot.

Details

Any polygon within another polygon counts as a hole in the area. Further nesting is dealt with by treating any point that is interior to an odd number of polygons as being within the area, and all other points as being exterior. The routine is provided to facilitate plotting with models containing mrf smooths.

See Also

mrf and columb.polys.

Examples

Run this code
## see also ?mrf for use of z
require(mgcv)
data(columb.polys)
polys.plot(columb.polys)

Run the code above in your browser using DataLab