Coder Social home page Coder Social logo

afdbillions / mapview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r-spatial/mapview

0.0 0.0 0.0 135.17 MB

Interactive viewing of spatial data in R

Home Page: https://r-spatial.github.io/mapview/

License: GNU General Public License v3.0

R 99.43% CSS 0.57%

mapview's Introduction

mapview

tic cran checks monthly total CRAN License Coverage Status status

Interactive viewing of spatial data in R

mapview provides functions to very quickly and conveniently create interactive visualisations of spatial data. It’s main goal is 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. It can also be considered a data-driven API for the leaflet package as it will automatically render correct map types, depending on the type of the data (points, lines, polygons, raster). In addition, it makes use of some advanced rendering functionality that will enable viewing of much larger data than is possible with leaflet. Furthermore, if you’re a fan of mapdeck (which you should!), you can choose to use it as the rendering platform instead of leaflet by setting mapviewOptions(platform = "mapdeck").

The main user relevant functions are:

  • mapview - view (multiple) spatial objects on a set of background maps
  • viewExtent - view extent / bounding box of spatial objects
  • viewRGB - view RGB true- or false-color images of raster objects
  • mapshot - 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 instead.
  • addLogo - deprecated, use package leafem instead.
  • addFeatures - deprecated, use package leafem instead.
  • addMouseCoordinates - deprecated, use package leafem instead.
  • addExtent - deprecated, use package leafem instead.
  • addImageQuery - deprecated, use package leafem instead.
  • latticeView & sync - deprecated, use package leafsync instead.
  • slideView - deprecated, use package slideview instead.
  • cubeView - deprecated, use package cubeview instead.
  • plainview - deprecated, use package plainview instead.
  • popupTable, popupGraph & popupImage - deprecated, use package leafpop instead.
  • addLargeFeatures - use leafgl::addGL* functions instead.

Objects of the following spatial classes are supported:

  • sf
  • raster (Layer, Stack, Brick and SpatialPixels* / SpatialGridDataFrame)
  • stars
  • sp (Points, Polygons, Lines and their DataFrame version)
  • satellite

Installation

For CRAN release version of mapview use

install.packages("mapview")

To install the development version you can install the remotes package.

NOTE: As of version 2.9.1 development will happen on the master branch. Please consider the develop branch obsolete.

remotes::install_github("r-spatial/mapview")

Usage

The most basic call

mapview(breweries)

will produce a web map visualisation of the breweries data with the following components:

Contact

Please file bug reports and feature requests at https://github.com/r-spatial/mapview/issues

mapview's People

Contributors

tim-salabim avatar pat-s avatar fdetsch avatar lbusett avatar timelyportfolio avatar edzer avatar mdsumner avatar trafficonese avatar ranghetti avatar pierreroudier avatar dickoa avatar ateucher avatar davidkretch avatar jsta avatar stewartmacdonald avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.