{"id":13401397,"url":"https://github.com/hafen/geofacet","last_synced_at":"2025-04-13T00:42:33.972Z","repository":{"id":56936291,"uuid":"91911906","full_name":"hafen/geofacet","owner":"hafen","description":"R package for geographical faceting with ggplot2","archived":false,"fork":false,"pushed_at":"2024-08-24T00:44:40.000Z","size":9629,"stargazers_count":338,"open_issues_count":136,"forks_count":45,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-13T00:42:29.235Z","etag":null,"topics":["geography","ggplot2","r","visualization"],"latest_commit_sha":null,"homepage":"https://hafen.github.io/geofacet/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hafen.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-20T19:35:05.000Z","updated_at":"2025-03-26T19:21:35.000Z","dependencies_parsed_at":"2024-01-12T23:42:10.726Z","dependency_job_id":"397c2da5-2820-4563-90a5-e945fd6cfd6a","html_url":"https://github.com/hafen/geofacet","commit_stats":{"total_commits":128,"total_committers":3,"mean_commits":"42.666666666666664","dds":0.015625,"last_synced_commit":"870d9f613762bf3ae2b00b1f861a179dd184130b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafen%2Fgeofacet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafen%2Fgeofacet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafen%2Fgeofacet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafen%2Fgeofacet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hafen","download_url":"https://codeload.github.com/hafen/geofacet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650417,"owners_count":21139672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geography","ggplot2","r","visualization"],"created_at":"2024-07-30T19:01:02.249Z","updated_at":"2025-04-13T00:42:33.938Z","avatar_url":"https://github.com/hafen.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"[![R-CMD-check](https://github.com/hafen/geofacet/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/hafen/geofacet/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/hafen/geofacet/branch/master/graph/badge.svg)](https://app.codecov.io/gh/hafen/geofacet?branch=master)\n[![CRAN](https://www.r-pkg.org/badges/version/geofacet)](https://CRAN.R-project.org/package=geofacet)\n[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/geofacet)](https://CRAN.R-project.org/package=geofacet)\n\n# geofacet \u003cimg src=\"man/figures/logo.png\" align=\"right\" alt=\"\" width=\"120\" /\u003e\n\nThis 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.\n\n## Install\n\n```r\ninstall.packages(\"geofacet\")\n# or from github:\n# remotes::install_github(\"hafen/geofacet\")\n```\n\n## Example\n\nSee [here](https://hafen.github.io/geofacet/) for the package vignette.\n\nBarchart of state rankings in various categories:\n\n```r\nlibrary(ggplot2)\n\nggplot(state_ranks, aes(variable, rank, fill = variable)) +\n  geom_col() +\n  coord_flip() +\n  facet_geo(~ state) +\n  theme_bw()\n```\n\n![us_categories](https://cloud.githubusercontent.com/assets/1275592/26282369/611ab89e-3dc5-11e7-86eb-65685cc2948b.png)\n\nUnemployment rate time series for each state:\n\n```r\nggplot(state_unemp, aes(year, rate)) +\n  geom_line() +\n  facet_geo(~ state, grid = \"us_state_grid2\") +\n  scale_x_continuous(labels = function(x) paste0(\"'\", substr(x, 3, 4))) +\n  ylab(\"Unemployment Rate (%)\")\n```\n\n![us_unemp](https://cloud.githubusercontent.com/assets/1275592/26282368/6118d06a-3dc5-11e7-96b4-6a511800b6d3.png)\n\nGDP per capita in relation to EU index (100) for each country in the European Union:\n\n```r\nggplot(eu_gdp, aes(year, gdp_pc)) +\n  geom_line(color = \"steelblue\") +\n  facet_geo(~ name, grid = \"eu_grid1\", scales = \"free_y\") +\n  scale_x_continuous(labels = function(x) paste0(\"'\", substr(x, 3, 4))) +\n  ylab(\"GDP Per Capita in Relation to EU Index (100)\") +\n  theme_bw()\n```\n\n![eu_gdp](https://cloud.githubusercontent.com/assets/1275592/26342901/ba4e83a2-3f4e-11e7-9a1f-9cec09e31682.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafen%2Fgeofacet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhafen%2Fgeofacet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafen%2Fgeofacet/lists"}