flowmapblue.r

Flowmap.blue widget for R

https://github.com/flowmapblue/flowmapblue.r

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.4%) to scientific vocabulary

Keywords

datavis mobility mobility-data movement-data rstats rstudio
Last synced: 6 months ago · JSON representation ·

Repository

Flowmap.blue widget for R

Basic Info
Statistics
  • Stars: 57
  • Watchers: 9
  • Forks: 11
  • Open Issues: 8
  • Releases: 1
Topics
datavis mobility mobility-data movement-data rstats rstudio
Created over 5 years ago · Last pushed 12 months ago
Metadata Files
Readme Changelog License Citation Codemeta

README.md

Flowmap.blue R widget flowmapblue website

CRAN status CRAN/METACRAN Total downloads CRAN/METACRAN Downloads per month R-CMD-check Lifecycle: stable

DOI

WORK IN PROGRESS

This is a Flowmap.blue widget for R. Create interactive flow maps using FlowmapBlue TypeScript library, which is a free tool for representing aggregated numbers of movements between geographic locations as flow maps. It is used to visualize urban mobility, commuting behavior, bus, subway and air travels, bicycle sharing, human and bird migration, refugee flows, freight transportation, trade, supply chains, scientific collaboration, epidemiological and historical data and many other topics. The package allows to either create standalone flow maps in form of ‘htmlwidgets’ and save them in ‘HTML’ files, or integrate flow maps into ‘Shiny’ applications.

You might also consider using this pure R flowmapping library based on ggplot2: https://github.com/JohMast/flowmapper

As an alternative, you may also consider using R to populate a spreadsheet for publishing on Flowmap.blue as described in this excellent blog post.

Installation

Install from CRAN:

r install.packages("flowmapblue")

To install the development version from GitHub you will need to install remotes if you don’t have it yet:

``` r if (!require("remotes")) install.packages("remotes")

remotes::install_github("FlowmapBlue/flowmapblue.R", force = TRUE, dependencies = TRUE) ```

Quick example

Setup your Mapbox access token. You can obtain a free token by signing up at Mapbox.

r Sys.setenv(MAPBOX_API_TOKEN = "YOUR_MAPBOX_ACCESS_TOKEN")

``` r library(flowmapblue)

load locations and flows for Switzerland

data(chlocations) data(chflows)

flowmap <- flowmapblue( chlocations, chflows, mapboxAccessToken = Sys.getenv('MAPBOXAPITOKEN'), clustering = TRUE, darkMode = TRUE, animation = FALSE )

view the map

flowmap ```

Here is a nice intro blog post by Paula Moraga.

For more examples with time and date in flows data, as well as integration with Shiny, see the Quick Start vignette and documentation for the package functions at https://flowmapblue.github.io/flowmapblue.R/.

Owner

  • Name: FlowmapBlue
  • Login: FlowmapBlue
  • Kind: organization

Citation (CITATION.cff)

# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "flowmapblue" in publications use:'
type: software
license: MIT
title: 'flowmapblue: Flow Map Rendering'
version: 0.0.2
doi: 10.32614/CRAN.package.flowmapblue
abstract: Create interactive flow maps using 'FlowmapBlue' 'TypeScript' library <https://github.com/FlowmapBlue/FlowmapBlue>,
  which is a free tool for representing aggregated numbers of movements between geographic
  locations as flow maps. It is used to visualize urban mobility, commuting behavior,
  bus, subway and air travels, bicycle sharing, human and bird migration, refugee
  flows, freight transportation, trade, supply chains, scientific collaboration, epidemiological
  and historical data and many other topics. The package allows to either create standalone
  flow maps in form of 'htmlwidgets' and save them in 'HTML' files, or integrate flow
  maps into 'Shiny' applications.
authors:
- family-names: Boyandin
  given-names: Ilya
  email: ilya@boyandin.me
  orcid: https://orcid.org/0000-0001-5585-7587
- family-names: Kotov
  given-names: Egor
  email: kotov.egor@gmail.com
  orcid: https://orcid.org/0000-0001-6690-5345
preferred-citation:
  type: manual
  title: Flowmap.blue widget for R
  authors:
  - family-names: Boyandin
    given-names: Ilya
    email: ilya@boyandin.me
    orcid: https://orcid.org/0000-0001-5585-7587
  year: '2024'
  url: https://github.com/FlowmapBlue/flowmapblue.R
  doi: 10.32614/CRAN.package.flowmapblue
repository-code: https://github.com/FlowmapBlue/flowmapblue.R
url: https://flowmapblue.github.io/flowmapblue.R/
contact:
- family-names: Kotov
  given-names: Egor
  email: kotov.egor@gmail.com
  orcid: https://orcid.org/0000-0001-6690-5345
keywords:
- datavis
- mobility
- mobility-data
- movement-data
- rstats
- rstudio
references:
- type: software
  title: 'R: A Language and Environment for Statistical Computing'
  notes: Depends
  url: https://www.R-project.org/
  authors:
  - name: R Core Team
  institution:
    name: R Foundation for Statistical Computing
    address: Vienna, Austria
  year: '2024'
  version: '>= 2.10'
- type: software
  title: htmlwidgets
  abstract: 'htmlwidgets: HTML Widgets for R'
  notes: Imports
  url: https://github.com/ramnathv/htmlwidgets
  repository: https://CRAN.R-project.org/package=htmlwidgets
  authors:
  - family-names: Vaidyanathan
    given-names: Ramnath
  - family-names: Xie
    given-names: Yihui
  - family-names: Allaire
    given-names: JJ
  - family-names: Cheng
    given-names: Joe
    email: joe@posit.co
  - family-names: Sievert
    given-names: Carson
    email: carson@posit.co
    orcid: https://orcid.org/0000-0002-4958-2844
  - family-names: Russell
    given-names: Kenton
  year: '2024'
- type: software
  title: quarto
  abstract: 'quarto: R Interface to ''Quarto'' Markdown Publishing System'
  notes: Suggests
  url: https://quarto-dev.github.io/quarto-r/
  repository: https://CRAN.R-project.org/package=quarto
  authors:
  - family-names: Allaire
    given-names: JJ
    email: jj@posit.co
    orcid: https://orcid.org/0000-0003-0174-9868
  - family-names: Dervieux
    given-names: Christophe
    email: cderv@posit.co
    orcid: https://orcid.org/0000-0003-4474-2498
  year: '2024'

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "flowmapblue",
  "description": "Create interactive flow maps using 'FlowmapBlue' 'TypeScript' library <https://github.com/FlowmapBlue/FlowmapBlue>, which is a free tool for representing aggregated numbers of movements between geographic locations as flow maps. It is used to visualize urban mobility, commuting behavior, bus, subway and air travels, bicycle sharing, human and bird migration, refugee flows, freight transportation, trade, supply chains, scientific collaboration, epidemiological and historical data and many other topics. The package allows to either create standalone flow maps in form of 'htmlwidgets' and save them in 'HTML' files, or integrate flow maps into 'Shiny' applications.",
  "name": "flowmapblue: Flow Map Rendering",
  "relatedLink": "https://flowmapblue.github.io/flowmapblue.R/",
  "codeRepository": "https://github.com/FlowmapBlue/flowmapblue.R",
  "issueTracker": "https://github.com/FlowmapBlue/flowmapblue.R/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "0.0.2",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.4.1 (2024-06-14)",
  "author": [
    {
      "@type": "Person",
      "givenName": "Ilya",
      "familyName": "Boyandin",
      "email": "ilya@boyandin.me",
      "@id": "https://orcid.org/0000-0001-5585-7587"
    }
  ],
  "copyrightHolder": [
    {
      "@type": "Person",
      "givenName": "Ilya",
      "familyName": "Boyandin",
      "email": "ilya@boyandin.me",
      "@id": "https://orcid.org/0000-0001-5585-7587"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Egor",
      "familyName": "Kotov",
      "email": "kotov.egor@gmail.com",
      "@id": "https://orcid.org/0000-0001-6690-5345"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "quarto",
      "name": "quarto",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=quarto"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 2.10"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "htmlwidgets",
      "name": "htmlwidgets",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=htmlwidgets"
    },
    "SystemRequirements": null
  },
  "fileSize": "4552.747KB",
  "citation": [
    {
      "@type": "SoftwareSourceCode",
      "datePublished": "2024",
      "author": [
        {
          "@type": "Person",
          "givenName": "Ilya",
          "familyName": "Boyandin",
          "email": "ilya@boyandin.me",
          "@id": "https://orcid.org/0000-0001-5585-7587"
        }
      ],
      "name": "Flowmap.blue widget for R",
      "identifier": "10.32614/CRAN.package.flowmapblue",
      "url": "https://github.com/FlowmapBlue/flowmapblue.R",
      "@id": "https://doi.org/10.32614/CRAN.package.flowmapblue",
      "sameAs": "https://doi.org/10.32614/CRAN.package.flowmapblue"
    }
  ],
  "releaseNotes": "https://github.com/FlowmapBlue/flowmapblue.R/blob/master/NEWS.md",
  "readme": "https://github.com/FlowmapBlue/flowmapblue.R/blob/master/README.md",
  "keywords": [
    "mobility",
    "datavis",
    "rstats",
    "rstudio",
    "movement-data",
    "mobility-data"
  ]
}

GitHub Events

Total
  • Issues event: 7
  • Watch event: 6
  • Issue comment event: 15
  • Push event: 2
  • Fork event: 2
Last Year
  • Issues event: 7
  • Watch event: 6
  • Issue comment event: 15
  • Push event: 2
  • Fork event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • cran 222 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: flowmapblue

Flow Map Rendering

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 222 Last month
Rankings
Dependent packages count: 28.3%
Dependent repos count: 34.9%
Average: 49.9%
Downloads: 86.7%
Maintainers (1)
Last synced: 6 months ago