(CC-BY-NC-SA)

This document was produced on So Jun 12 2016 using mapview version 1.1.0


sync

sync lets you synchronise multiple maps

library(mapview)
library(sp)

data(meuse)
coordinates(meuse) <- ~x+y
proj4string(meuse) <- CRS("+init=epsg:28992")

## view different aspects of same data set
m1 <- mapview(breweries91, zcol = "brewery")
m2 <- mapview(breweries91, zcol = "village")
m3 <- mapview(breweries91, zcol = "founded", map.types = "Esri.WorldImagery")
m4 <- leaflet() %>% addTiles() %>% addCircleMarkers(data = breweries91)

sync(m1, m2, m3, m4)

latticeView

does as the name implies arrange multiple maps in a lattice on one page (like panels in package lattice or facets in package gplot2)

latticeView(m1, m2, m3, m4)

layout can be controlled with ncol

latticeView(m1, m2, m3, ncol = 1)