- Notifications
You must be signed in to change notification settings - Fork94
Interactive viewing of spatial data in R
License
r-spatial/mapview
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
mapview provides functions to very quickly and conveniently createinteractive visualisations of spatial data. It’s main goal is to fillthe gap of quick (not presentation grade) interactive plotting toexamine and visually investigate both aspects of spatial data, thegeometries and their attributes. It can also be considered a data-drivenAPI for theleafletpackage as it will automatically render correct map types, depending onthe type of the data (points, lines, polygons, raster). In addition, itmakes use of some advanced rendering functionality that will enableviewing of much larger data than is possible withleaflet.Furthermore, if you’re a fan ofmapdeck (which youshould!), you can choose to use it as the rendering platform instead ofleaflet by settingmapviewOptions(platform = "mapdeck").
The main user relevant functions are:
mapview- view (multiple) spatial objects on a set of backgroundmapsviewExtent- view extent / bounding box of spatial objectsviewRGB- view RGB true- or false-color images of raster objectsmapshot- easily save maps (including leaflet maps) ashtmland/orpng(or other image formats)
Functions that have been deprecated/deleted recently:
addHomeButton- deprecated, use packageleafem instead.addLogo- deprecated, use packageleafem instead.addFeatures- deprecated, use packageleafem instead.addMouseCoordinates- deprecated, use packageleafem instead.addExtent- deprecated, use packageleafem instead.addImageQuery- deprecated, use packageleafem instead.latticeView&sync- deprecated, use packageleafsync instead.slideView- deprecated, use packageslideview instead.cubeView- deprecated, use packagecubeview instead.plainview- deprecated, use packageplainview instead.popupTable,popupGraph&popupImage- deprecated, use packageleafpop instead.addLargeFeatures- useleafgl::addGL*functions instead.
Objects of the following spatial classes are supported:
- sf
- raster (Layer, Stack,Brick and SpatialPixels* / SpatialGridDataFrame)
- stars
- sp (Points, Polygons, Linesand their DataFrame version)
- satellite
For CRAN release version ofmapview use
install.packages("mapview")To install the development version you can install theremotes package.
NOTE: As of version 2.9.1 development will happen on themasterbranch. Please consider thedevelop branch obsolete.
remotes::install_github("r-spatial/mapview")
The most basic call
mapview(breweries)will produce a web map visualisation of the breweries data with thefollowing components:
Please file bug reports and feature requests athttps://github.com/r-spatial/mapview/issues
About
Interactive viewing of spatial data in R
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.

