Description Usage Arguments Details Value See Also
Plot numeric data on Polish voivodships
1 |
x |
named numeric vector, data to be plotted |
... |
other arguments passed to |
matchattr |
character or |
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
.
Object of class "trellis" returned invisibly containing the plotting structure. The plot is produced.
shapes for the documentation of available shapes in package mapoland.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.