Description Usage Arguments Details Value Author(s) See Also Examples

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

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

`pc` |
A named list of matrices. Each matrix has two columns. The matrix rows each define the
vertex of a boundary polygon. If a boundary is defined by several polygons, then each of these must be
separated by an |

`z` |
A vector of values associated with each area (item) of |

`scheme` |
One of |

`lab` |
label for plot. |

`...` |
other arguments to pass to plot (currently only if |

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.

Simply produces a plot.

Simon Wood simon.wood@r-project.org

`mrf`

and `columb.polys`

.

1 2 3 4 | ```
## see also ?mrf for use of z
require(mgcv)
data(columb.polys)
polys.plot(columb.polys)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.