Movatterモバイル変換


[0]ホーム

URL:


mapdeck

R build status [Codecov test coverageCRAN_Status_BadgedownloadsCRAN RStudio mirror downloadsGithub Stars

What is mapdeck?

An R library which lets you plot large data sets (as much as your GPU& browser can handle), on interactive maps using Mapbox GL andDeck.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 dataanalysis of large datasets.

How do I use it?

First you need to install it, either from CRAN

install.packages("mapdeck")

Or from github (to get the latest development version)

remotes::install_github("SymbolixAU/mapdeck")

If the github version fails to install, you’ll probably need toupdate dependencies first

remotes::install_github("dcooley/geometries")remotes::install_github("dcooley/sfheaders")remotes::install_github("SymbolixAU/spatialwidget")

Then everything you need to know to get you started is on thehomepage

Quick Start

Mapdeck usesMapbox maps, andto use Mapbox you need anaccesstoken.

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

Callmapdeck(token = 'your_token') to generate a basicmap. Then start adding layers by using one of the variousadd_*() 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 theLayerspage for more examples

Getting help

For general help and advice the best place to ask is onStackOverflow(using themapdeck tag).

If you’ve found a bug, or want a new feature added then use theissue tracker ongithub.

I don’t respond to emails asking for help because this is an opensource package, and any advice should be kept open so everyone canbenefit. (unless you want to pay me!)


[8]ページ先頭

©2009-2025 Movatter.jp