panel.map: panel function for maps

View source: R/panel.map.R

panel.mapR Documentation

panel function for maps

Description

this function produces a panel.polygon from a map object. This can then be used to visualise the map on top of an spplot object. NOTE: currently only tested for unprojected latlon data.

Usage

panel.map(map.data, col = "transparent", ...)

Arguments

map.data

the map type - see map database argument

col

the colour of the fill

...

additional arguments passed on to panel.polygon

Value

A panel.polygon object

Author(s)

Tim Appelhans

Examples

library(latticeExtra)
rst <- raster(ncols = 360, nrows = 180)
rst[] <- rnorm(360 * 180)

spplot(rst) + layer(panel.map("world"))


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.