geofacet

R package for geographical faceting with ggplot2

https://github.com/hafen/geofacet

Science Score: 13.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

geography ggplot2 r visualization
Last synced: 6 months ago · JSON representation

Repository

R package for geographical faceting with ggplot2

Basic Info
Statistics
  • Stars: 343
  • Watchers: 15
  • Forks: 46
  • Open Issues: 134
  • Releases: 1
Topics
geography ggplot2 r visualization
Created almost 9 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.md

R-CMD-check Codecov test coverage CRAN CRAN Downloads

geofacet

This R package provides geofaceting functionality for ggplot2. Geofaceting arranges a sequence of plots of data for different geographical entities into a grid that strives to preserve some of the original geographical orientation of the entities. It's easiest to describe with examples. See below.

Install

```r install.packages("geofacet")

or from github:

remotes::install_github("hafen/geofacet")

```

Example

See here for the package vignette.

Barchart of state rankings in various categories:

```r library(ggplot2)

ggplot(stateranks, aes(variable, rank, fill = variable)) + geomcol() + coordflip() + facetgeo(~ state) + theme_bw() ```

us_categories

Unemployment rate time series for each state:

r ggplot(state_unemp, aes(year, rate)) + geom_line() + facet_geo(~ state, grid = "us_state_grid2") + scale_x_continuous(labels = function(x) paste0("'", substr(x, 3, 4))) + ylab("Unemployment Rate (%)")

us_unemp

GDP per capita in relation to EU index (100) for each country in the European Union:

r ggplot(eu_gdp, aes(year, gdp_pc)) + geom_line(color = "steelblue") + facet_geo(~ name, grid = "eu_grid1", scales = "free_y") + scale_x_continuous(labels = function(x) paste0("'", substr(x, 3, 4))) + ylab("GDP Per Capita in Relation to EU Index (100)") + theme_bw()

eu_gdp

Owner

  • Name: Ryan Hafen
  • Login: hafen
  • Kind: user
  • Location: WA, USA

GitHub Events

Total
  • Issues event: 66
  • Watch event: 6
  • Delete event: 1
  • Issue comment event: 76
  • Push event: 10
  • Pull request event: 4
  • Pull request review event: 2
  • Create event: 1
Last Year
  • Issues event: 66
  • Watch event: 6
  • Delete event: 1
  • Issue comment event: 76
  • Push event: 10
  • Pull request event: 4
  • Pull request review event: 2
  • Create event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 128
  • Total Committers: 3
  • Avg Commits per committer: 42.667
  • Development Distribution Score (DDS): 0.016
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
hafen r****n@g****m 126
olivroy 5****y 1
Egor Kotov k****r@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 173
  • Total pull requests: 9
  • Average time to close issues: over 2 years
  • Average time to close pull requests: over 2 years
  • Total issue authors: 134
  • Total pull request authors: 5
  • Average comments per issue: 1.08
  • Average comments per pull request: 0.78
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 2
  • Average time to close issues: 11 days
  • Average time to close pull requests: 25 minutes
  • Issue authors: 10
  • Pull request authors: 1
  • Average comments per issue: 0.3
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • chadrent (9)
  • thomasxxpaul (4)
  • ahcyip (4)
  • Abu-sakara (3)
  • friendly (3)
  • TuQmano (3)
  • kjhnav (3)
  • nazikhan (2)
  • asaha2211 (2)
  • waynegault (2)
  • Connoll (2)
  • raogeorge (2)
  • msutela (2)
  • fatemehshahbazi (2)
  • JediPro (2)
Pull Request Authors
  • stedy (2)
  • jonspring (2)
  • hafen (2)
  • petrbouchal (2)
  • olivroy (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 1,034 last-month
  • Total docker downloads: 43
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 15
    (may contain duplicates)
  • Total versions: 11
  • Total maintainers: 1
proxy.golang.org: github.com/hafen/geofacet
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
cran.r-project.org: geofacet

'ggplot2' Faceting Utilities for Geographical Data

  • Versions: 7
  • Dependent Packages: 3
  • Dependent Repositories: 15
  • Downloads: 1,034 Last month
  • Docker Downloads: 43
Rankings
Stargazers count: 1.2%
Forks count: 1.8%
Dependent repos count: 7.4%
Average: 9.2%
Dependent packages count: 10.9%
Downloads: 12.8%
Docker downloads count: 21.0%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: r-geofacet
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Stargazers count: 19.8%
Forks count: 25.4%
Average: 32.6%
Dependent repos count: 34.0%
Dependent packages count: 51.2%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2 depends
  • geogrid * imports
  • ggplot2 >= 3.2.1 imports
  • ggrepel * imports
  • graphics * imports
  • gridExtra * imports
  • gtable * imports
  • imguR * imports
  • methods * imports
  • rnaturalearth * imports
  • sf * imports
  • sp * imports
  • covr * suggests
  • knitr * suggests
  • lintr * suggests
  • rmarkdown * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite