panel.map | R Documentation |
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.
panel.map(map.data, col = "transparent", ...)
map.data |
the map type - see |
col |
the colour of the fill |
... |
additional arguments passed on to |
A panel.polygon
object
Tim Appelhans
library(latticeExtra)
rst <- raster(ncols = 360, nrows = 180)
rst[] <- rnorm(360 * 180)
spplot(rst) + layer(panel.map("world"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.