{"id":14068593,"url":"https://github.com/hrbrmstr/albersusa","last_synced_at":"2025-07-30T04:31:39.309Z","repository":{"id":141237995,"uuid":"54916971","full_name":"hrbrmstr/albersusa","owner":"hrbrmstr","description":"Tools, shapefiles \u0026 data to work with an \"AlbersUSA\" composite projection in R ","archived":true,"fork":false,"pushed_at":"2020-03-04T20:51:49.000Z","size":33358,"stargazers_count":77,"open_issues_count":18,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-13T07:15:04.940Z","etag":null,"topics":["albersusa","cartograms","cartography","map-projections","r","rstats"],"latest_commit_sha":null,"homepage":null,"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/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"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}},"created_at":"2016-03-28T19:12:50.000Z","updated_at":"2023-12-12T22:47:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc181ec6-4cae-4213-8bea-f15406551521","html_url":"https://github.com/hrbrmstr/albersusa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Falbersusa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Falbersusa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Falbersusa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Falbersusa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/albersusa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228082343,"owners_count":17866604,"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":["albersusa","cartograms","cartography","map-projections","r","rstats"],"created_at":"2024-08-13T07:06:17.799Z","updated_at":"2024-12-04T09:31:07.775Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: rmarkdown::github_document\n---\n```{r pkg-knitr-opts, include=FALSE}\nhrbrpkghelpr::global_opts()\n```\n\n```{r badges, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::stinking_badges()\n```\n\n```{r description, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::yank_title_and_description()\n```\n\n## What's Inside The Tin\n\nThe following functions are implemented:\n\n- `counties_sf`:\tRetrieve a U.S. county composite map, optionally with a projection, as a simplefeature\n- `usa_sf`:\tRetreive a U.S. state composite map, optionally with a projection, as a simplefeature\n\nNew ones:\n\n- `points_elided`: Shift points around Alaska and Hawaii to the elided area (by @rdinter)\n\nSome legacy ones:\n\n- `usa_composite`:\tRetrieve a U.S. composite map, optionally with a projection\n- `counties_composite`:\tRetrieve a U.S. county composite map, optionally with a projection\n\nPre-canned projection strings:\n\n- `us_aeqd_proj`:\tOblique azimuthal equidistant convenience projection\n- `us_eqdc_proj`:\tEquidistant conic convenience projection\n- `us_laea_proj`:\tAlbers equal-area conic convenience projection\n- `us_lcc_proj`:\tLambert conformal conic convenience projection\n- `us_longlat_proj`:\tGeneric long/lat convenience projection\n\nThe following data sets are included:\n\n- `system.file(\"extdata/composite_us_states.geojson.gz\", package=\"albersusa\")` \n- `system.file(\"extdata/composite_us_counties.geojson.gz\", package=\"albersusa\")`\n\nAlso, the simplefeatures columns and `@data` slot of each `SpatialPolygonsDataFrame` has some handy data you can use (like FIPS codes and state/county population information).\n\n## Installation\n\n```{r install-ex, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::install_block()\n```\n\n## Usage\n\n```{r message=FALSE, fig.retina=2}\nlibrary(albersusa)\nlibrary(sf)\nlibrary(sp)\nlibrary(rgeos)\nlibrary(maptools)\nlibrary(ggplot2)\nlibrary(ggalt)\nlibrary(ggthemes)\nlibrary(viridis)\nlibrary(scales)\n\n# current version\npackageVersion(\"albersusa\")\n```\n\n### Simple features base\n\n```{r message=FALSE, fig.retina=2}\npar(mar=c(0,0,1,0))\n\nus_sf \u003c- usa_sf(\"laea\")\nplot(us_sf[\"pop_2012\"])\n\ncty_sf \u003c- counties_sf(\"aeqd\")\nplot(cty_sf[\"census_area\"])\n```\n\n### ggplot2\n\n```{r message=FALSE, warning=FALSE, fig.retina=2}\nggplot() +\n  geom_sf(data = us_sf, size = 0.125)\n\nggplot() +\n  geom_sf(data = us_sf, size = 0.125) +\n  coord_sf(crs = us_longlat_proj)\n\nggplot() +\n  geom_sf(data = cty_sf, size = 0.0725)\n\nggplot() +\n  geom_sf(data = cty_sf, size = 0.0725) +\n  coord_sf(crs = us_longlat_proj)\n```\n\n## albersusa Metrics\n\n```{r cloc, echo=FALSE}\ncloc::cloc_pkg_md()\n```\n\n## Code of Conduct\n\nPlease note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Falbersusa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Falbersusa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Falbersusa/lists"}