Skip to content

Instantly share code, notes, and snippets.

@bhaskarvk
Last active July 5, 2017 04:33
Show Gist options
  • Save bhaskarvk/32b2a03a430a04a67664b85cad89c825 to your computer and use it in GitHub Desktop.
Save bhaskarvk/32b2a03a430a04a67664b85cad89c825 to your computer and use it in GitHub Desktop.
Geospatial Data Visualization in R, A UseR! 2017 tutorial.

Geospatial Data Visualization using R

The goal of user2017.geodataviz is to privide a comprehensive overview of the options available in the R language for Geospatial data visualization. This tutorial covers ...

  • R Packages

  • R Data Structures for Spatial Data

  • Operations Supported on Spatial Data

  • Visualizing Spatial Data

  • Using Base Graphics

  • Using ggplot2 and helper packages

  • Using shiny for dynamic mapping

  • Using leaflet and related packages for interactive maps.

  • Using specialized packages such as tmap, choroplethr, ggmap, plotly, highcharter etc.

Installation

The Docker way

The easiest option is using a docker image built specifically for this tutorial.

  • Install docker, and docker toolbox (only for Windows and Mac).

  • Either using the kitematic GUI tool or command line pull the bhaskarvk/rgeodataviz image.
    Command line: docker pull bhaskarvk/rgeodataviz

Manually

If docker is not an option, then please install the following packages. Some of these packages have external dependencies, so be sure to consult individual package's documentation on installation procedures.

From CRAN install

  • Generic Packages
  • devtools
  • tidyverse
  • rmarkdown
  • shiny
  • roxygen2
  • rstudioapi
  • rsconnect
  • hrbrthemes
  • ggiraph
  • widgetframe
  • manipulateWidget
  • xaringan
  • knitr
  • Spatial Packages
  • sp
  • sf
  • regos
  • rgdal
  • raster
  • rasterVis
  • gdistance
  • geosphere
  • maps
  • maptools
  • gdalUtils
  • cleangeo
  • rmapshaper
  • spatstat
  • leaflet
  • leaflet.extras
  • leaflet.esri
  • leaflet.minimaps
  • ggmap
  • ggalt
  • ggspatial
  • rasterVis
  • lawn
  • geojson
  • geojsonio
  • geoaxe
  • geonames
  • wkb
  • tmap
  • mapview
  • mapedit
  • cartography
  • ggmap
  • cartogram
  • raturalearth
  • choroplethr
  • choroplethsMaps
  • plotly
  • highcharter
  • tilegramsR
  • acs
  • tigris
  • tidycensus
  • usmap
  • osmdata
  • OpenSteeetMap
  • plotKML
  • googleway
  • plotGoogleMaps
  • rbokeh
  • RNetCDF
  • ncdf4
  • rnoaa
  • ropenaq
  • animation

We also need development versions of certain packages, which can be installed from github. FOr each package name below install it using `devtools::install_github('). The repository names are given below

  • tidyverse/ggplot2
  • edzer/sfr
  • hrbrmstr/ggalt
  • hrbrmstr/albersusa
  • hrbrmstr/hrbrthemes
  • rstudio/leaflet
  • rstudio/rmarkdown
  • rstudio/crosstalk
  • mtennekes/tmap
  • bhaskarvk/leaflet.extras
  • bhaskarvk/leaflet.esri
  • 'r-spatial/mapview@develop'
  • r-spatial/mapedit
  • nowosad/spData
  • dkahle/ggmap
  • walkerke/tidycensus
  • hrecht/censusapi
  • ropenscilabs/rnaturalearthhires
  •   ropensci/geoparser
  • ropensci/plotly
  •   arilamstein/choroplethrZip
  • oswaldosantos/ggsn
  • paleolimbot/ggspatial
  • dgrtwo/gganimate
  • riatelab/cartography
  • bhaskarvk/user2017.rgeodataviz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment