mapview provides a couple of special convenience functions for all supported spatial data types:
viewExtentto view extents/bounding boxes of objects
syncing of multiple maps
There are also a few raster-only specialty functions:
viewRGBto view RGB (raster) images
For the following:
plainviewto view raster images without map background
slideviewto compare two raster/RGB images
cubeviewto view 3D raster cubes
please refer to the individual help pages (e.g.
This can be handy to check whether features overlap or to just check where things are roughly located (e.g. in case we have big data sets, e.g. raster stacks).
library(mapview) library(leaflet) library(plainview) library(leafsync) viewExtent(poppendorf, color = "red") + viewExtent(breweries)
sync can be used to produce small multiples that are synchronised. Meaning that if we zoom into one panel, all other panels will also zoom. Additionally, the mouse position is also synced (indicated via a red circle).
sync provides a very convenient way to compare multiple attributes of the same feature geometry set.
sync all panels:
Any combination of panels: