Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

polys.map

Geographic map with regions defined as polygons


Description

This function produces a map with geographic regions defined by polygons. It is essentially the same function as polys.plot() in mgcv but with added arguments zlim and rev.col and a wider set of choices for scheme.

Usage

polys.map(lm, z, scheme = "gray", lab = "", zlim, rev.col = TRUE, ...)

Arguments

lm

Named list of matrices where each matrix has two columns. The matrix rows each define the vertex of a boundary polygon.

z

A vector of values associated with each area (item) of lm.

scheme

Possible values are "heat", "terrain", "topo", "cm" and "gray", indicating how to fill the polygons in accordance with the value of z.

lab

label for plot.

zlim

If missing then the range of z will be chosen using pretty(z) otherwise the range provided will be used.

rev.col

If FALSE then coloring scheme is not reversed.

...

other arguments to pass to plot.

Details

See help file of polys.plot in mgcv.

Value

It produces a plot.

Author(s)

Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk


GJRM

Generalised Joint Regression Modelling

v0.2-4
GPL (>= 2)
Authors
Giampiero Marra <giampiero.marra@ucl.ac.uk> and Rosalba Radice <rosalba.radice@city.ac.uk>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.