https://github.com/gigwork/mapping
Mapping gig work
https://github.com/gigwork/mapping
Last synced: 5 months ago
JSON representation
Mapping gig work
- Host: GitHub
- URL: https://github.com/gigwork/mapping
- Owner: gigwork
- Created: 2021-02-10T21:37:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T21:48:17.000Z (over 3 years ago)
- Last Synced: 2024-08-13T07:04:17.362Z (8 months ago)
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - gigwork/mapping - Mapping gig work (Others)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```# mapping
The goal of this article is to demonstrate how to visualise animated traces in an interactive map with R.
You can set-up a basic animated map with `mapdeck` as follows:
```{r, eval=FALSE}
library(mapdeck)
library(sf)
mapdeck(
location = c(145, -37.8)
, zoom = 10
, style = mapdeck_style("dark")
, token = Sys.getenv("MAPBOX")
) %>%
add_trips(
data = sf
, animation_speed = 2000
, trail_length = 1000
, stroke_colour = "#FFFFFF"
)```

```{r}
f_gpx = "../gigwork.github.io/data/01._Adnan_aka_Adeeb/01._.gpx_file/strava_4658971578.g"
trace =
```There is also a way to do it with the `rdeck` package but this package is not mature or well documented at present.
```{r}
remotes::install_github("anthonynorth/rdeck")
library(rdeck)
?rdeck::trips_layer
```