mapview provides functions to very quickly and conveniently create interactive visualisations of spatial data. It was created to fill the gap of quick (not presentation grade) interactive plotting to examine and visually investigate both aspects of spatial data, the geometries and their attributes.
The main user relevant functions are:
mapview
- view (multiple) spatial objects on a set of background mapsviewExtent
- view extent / bounding box of spatial objectsviewRGB
- view RGB true- or false-color images of raster objectsmapshot
- easily save maps (including leaflet maps) as html
and/or png
(or other image formats)Functions that have been deprecated/deleted recently:
addHomeButton
- deprecated, use package leafem insteadaddLogo
- deprecated, use package leafem insteadaddFeatures
- deprecated, use package leafem insteadaddMouseCoordinates
- deprecated, use package leafem insteadaddExtent
- deprecated, use package leafem insteadaddImageQuery
- deprecated, use package leafem insteadlatticeView
& sync
- deprecated, use package leafsync insteadslideView
- deprecated, use package slideview insteadcubeView
- deprecated, use package cubeview insteadplainview
- deprecated, use package plainview insteadpopupTable
, popupGraph
& popupImage
- deprecated, use package leafpop insteadaddLargeFeatures
- use leafgl::addGL*
functions instead - currently not on CRAN!Objects of the following spatial classes are supported:
For CRAN release version of mapview use
To install the development version install the devtools package.
The most basic call
will produce a web map visualisation of the breweries data with the following components:
Please file bug reports and feature requests at https://github.com/r-spatial/mapview/issues
In case of Pull Requests, please make sure to submit them to the develop
branch of this repository.