Skip to content
R interface to Deck.gl and Mapbox
Branch: master
Clone or download
Latest commit c7e0a7e Mar 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Feb 13, 2019
R why dispatch tibbles to data.frame when they don't be have the same a… Mar 22, 2019
data-raw
data
docs more webiste images Feb 7, 2019
inst exploring returning coords Feb 24, 2019
man
src
tests
vignettes
.Rbuildignore
.gitattributes
.gitignore
.travis.yml
DESCRIPTION factors as string closes #104 Feb 18, 2019
NAMESPACE
NEWS.md
README.Rmd
README.md
codecov.yml
cran-comments.md
mapdeck.Rproj scatter Jul 18, 2018

README.md

mapdeck

CRAN_Status_Badge downloads CRAN RStudio mirror downloads Github Stars Build Status Coverage Status

What is mapdeck?

An R library which lets you plot interactive maps using Mapbox GL and Deck.gl

What is mapbox?

Mapbox is the location data platform for mobile and web applications. We provide building blocks to add location features like maps, search, and navigation into any experience you create.

What is deck.gl?

deck.gl is a WebGL-powered framework for visual exploratory data analysis of large datasets.

How do I use it?

Everything you need to know to get you started is on the home page

Installation

From cran

install.packages("mapdeck")

Development version

To use the development version you need some other development dependant libraries

devtools::install_github("SymbolixAU/colourvalues", force = TRUE)
devtools::install_github("SymbolixAU/spatialwidget", force = TRUE)
devtools::install_github("SymbolixAU/mapdeck")

Getting Started

Mapdeck uses Mapbox maps, and to use Mapbox you need an access token.

Once you’ve generate a token you can use their maps.

Call mapdeck(token = 'your_token') to generate a basic map. Then start adding layers by using one of the various add_*() functions.

url <- 'https://raw.githubusercontent.com/plotly/datasets/master/2011_february_aa_flight_paths.csv'
flights <- read.csv(url)
flights$info <- paste0("<b>",flights$airport1, " - ", flights$airport2, "</b>")

mapdeck(token = key, style = mapdeck_style('dark')) %>%
  add_arc(
    data = flights
    , origin = c("start_lon", "start_lat")
    , destination = c("end_lon", "end_lat")
    , stroke_from = "airport1"
    , stroke_to = "airport2"
    , tooltip = "info"
    , layer_id = 'arclayer'
  )

Arcs

See the Layers page for more examples

You can’t perform that action at this time.