Learn R Programming

mapview (version 1.0.0)

spplot: spplot method for objects of class 'mapview'

Description

this function attempts to produce a static version of the specified mapview object that looks similar to the interactive version.

Usage

## S3 method for class 'mapview':
spplot(obj, zoom = NULL,
  col.regions = mapviewPalette(256), alpha.regions = 0.8, ...)

Arguments

obj
an object of class 'mapview'
zoom
Zoom level, see openmap.
col.regions, alpha.regions
See spplot.
...
Further arguments passed on to spplot.

Examples

Run this code
library(sp)
m1 <- mapview(breweries91, zcol = "zipcode")
spplot(m1)

m2 <- mapview(gadmCHE, zcol = "NAME_1")
spplot(m2)

Run the code above in your browser using DataLab