Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FlowmapBlue/flowmapblue.R
Flowmap.blue widget for R
https://github.com/FlowmapBlue/flowmapblue.R
datavis mobility mobility-data movement-data rstats rstudio
Last synced: 3 months ago
JSON representation
Flowmap.blue widget for R
- Host: GitHub
- URL: https://github.com/FlowmapBlue/flowmapblue.R
- Owner: FlowmapBlue
- License: mit
- Created: 2020-06-29T12:10:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T09:42:53.000Z (7 months ago)
- Last Synced: 2024-05-21T02:09:56.909Z (6 months ago)
- Topics: datavis, mobility, mobility-data, movement-data, rstats, rstudio
- Language: R
- Homepage:
- Size: 934 KB
- Stars: 50
- Watchers: 9
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - FlowmapBlue/flowmapblue.R - Flowmap.blue widget for R (R)
README
# Flowmap.blue R widget
WORK IN PROGRESS
This is a [Flowmap.blue](http://flowmap.blue) widget for R.
It produces an interactive flow map representing numbers of movements between locations (origin-destination data).You might also consider using this pure R flowmapping library: https://github.com/JohMast/flowmapper
![image](https://user-images.githubusercontent.com/351828/86061814-bb993800-ba67-11ea-9e76-90a75f813327.png)
As an alternative, you may also consider using R to populate a spreadsheet for publishing on [Flowmap.blue](http://flowmap.blue)
as described in this [excellent blog post](https://doodles.mountainmath.ca/blog/2020/01/06/flow-maps/).### Installation
You need to install `devtools` if you don't have it yet:install.packages("devtools")
You can install the package from GitHub as follows:
devtools::install_github("FlowmapBlue/flowmapblue.R")
library(flowmapblue)
### Usage
locations <- read.csv('https://gist.githubusercontent.com/ilyabo/a7b9701424257146b571149d92a14926/raw/2e9e1e9bcf64cf0090781b451037229ccb78e1b1/locations.csv')
flows <- read.csv('https://gist.githubusercontent.com/ilyabo/a7b9701424257146b571149d92a14926/raw/2e9e1e9bcf64cf0090781b451037229ccb78e1b1/flows.csv')
mapboxAccessToken <- 'YOUR_MAPBOX_ACCESS_TOKEN'
flowmapblue(locations, flows, mapboxAccessToken, clustering=TRUE, darkMode=TRUE, animation=FALSE)Here is a [nice intro blog post](https://www.paulamoraga.com/blog/2020/07/11/2020-07-11-mobility/) by Paula Moraga.