voivPlot: Plot data on Polish voivodships

Description Usage Arguments Details Value See Also

View source: R/voivPlot.R

Description

Plot numeric data on Polish voivodships

Usage

1
voivPlot(x, ..., matchattr = NULL)

Arguments

x

named numeric vector, data to be plotted

...

other arguments passed to spplot

matchattr

character or NULL, name of the polygon attribute that should be used for matching against names of x, see Details

Details

The data vector x should be named to match it against polygon names in the underlying spatial object so that values in x are properly assigned to voivodships. If there are no names x is assumed to be properly ordered, but a warning is thrown.

If x has names then, depending on the value of matchattr, the names are matched against attribute(s) of the underlying spatial object. If matchattr is NULL then names of x are matched against all available attributes and best match (least number of NAs in the matching vector) is used for the match. If matchattr is a character scalar, then it is assumed to be the name of the attribute to be used for matching.

The underlying shapefile has the following polygon attributes that can be used for matching: "teryt", "names_asci", "names_utf8", "names_lati". See shapes for further details.

The plot is produced using spplot.

Value

Object of class "trellis" returned invisibly containing the plotting structure. The plot is produced.

See Also

shapes for the documentation of available shapes in package mapoland.

spplot, spCbind


mapoland documentation built on May 2, 2019, 6:53 p.m.