USAboundaries
USAboundaries: Historical and Contemporary Boundaries of the United States of America - Published in JOSS (2018)
Science Score: 93.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
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
digital-history
history
r
r-package
rstats
spatial-data
Keywords from Contributors
tidyverse
tokenizer
weather-data
data-access
interactive-visualizations
plotly
osm-data
overpass-api
pm25
rti-micropem
Last synced: 6 months ago
·
JSON representation
Repository
Historical and Contemporary Boundaries of the United States of America
Basic Info
- Host: GitHub
- Owner: ropensci
- License: other
- Language: R
- Default Branch: main
- Homepage: https://docs.ropensci.org/USAboundaries
- Size: 16.1 MB
Statistics
- Stars: 62
- Watchers: 11
- Forks: 9
- Open Issues: 2
- Releases: 4
Topics
digital-history
history
r
r-package
rstats
spatial-data
Created over 11 years ago
· Last pushed over 4 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
pagetitle: Historical and Contemporary Boundaries of the United States of America
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
set.seed(87737)
```
# USAboundaries
[](https://cran.r-project.org/package=USAboundaries)
[](https://doi.org/10.21105/joss.00314)
[](https://github.com/ropensci/USAboundaries/actions)
[](https://codecov.io/github/ropensci/USAboundaries?branch=master)
## Overview
This R package includes contemporary state, county, and Congressional district boundaries, as well as zip code tabulation area centroids. It also includes historical boundaries from 1629 to 2000 for states and counties from the Newberry Library's [Atlas of Historical County Boundaries](https://publications.newberry.org/ahcbp/), as well as historical city population data from Erik Steiner's "[United States Historical City Populations, 1790-2010](https://github.com/cestastanford/historical-us-city-populations)." The package has some helper data, including a table of state names, abbreviations, and FIPS codes, and functions and data to get [State Plane Coordinate System](https://en.wikipedia.org/wiki/State_Plane_Coordinate_System) projections as EPSG codes or PROJ.4 strings.
This package can serve a number of purposes. The spatial data can be joined to any other kind of data in order to make thematic maps. Unlike other R packages, this package also contains historical data for use in analyses of the recent or more distant past. See the ["A sample analysis using USAboundaries"](http://lincolnmullen.com/software/usaboundaries/articles/usaboundaries-sample-analysis.html) vignette for an example of how the package can be used for both historical and contemporary maps.
## Citation
If you use this package in your research, we would appreciate a citation.
```{r}
citation("USAboundaries")
```
## Installation
You can install this package from CRAN.
```
install.packages("USAboundaries")
```
Almost all of the data for this package is provided by the [USAboundariesData package](https://github.com/ropensci/USAboundariesData). That package will be automatically installed (with your permission) from the [rOpenSci package repository](https://ropensci.r-universe.dev) the first time that you need it.
Or you can install the development versions from GitHub using [remotes](https://remotes.r-lib.org).
```
# install.packages("remotes")
remotes::install_github("ropensci/USAboundaries")
remotes::install_github("ropensci/USAboundariesData")
```
## Use
This package provides a set of functions, one for each of the types of boundaries that are available. These functions have a consistent interface.
Passing a date to `us_states()`, `us_counties()`, and `us_cities()` returns the historical boundaries for that date. If no date argument is passed, then contemporary boundaries are returned. The functions `us_congressional()` and `us_zipcodes()` only offer contemporary boundaries.
For almost all functions, pass a character vector of state names or abbreviations to the `states =` argument to return only those states or territories.
For certain functions, more or less detailed boundary information is available by passing an argument to the `resolution =` argument.
See the examples below to see how the interface works, and see the documentation for each function for more details.
```{r}
library(USAboundaries)
library(sf) # for plotting and projection methods
states_1840 <- us_states("1840-03-12")
plot(st_geometry(states_1840))
title("U.S. state boundaries on March 3, 1840")
states_contemporary <- us_states()
plot(st_geometry(states_contemporary))
title("Contemporary U.S. state boundaries")
counties_va_1787 <- us_counties("1787-09-17", states = "Virginia")
plot(st_geometry(counties_va_1787))
title("County boundaries in Virginia in 1787")
counties_va <- us_counties(states = "Virginia")
plot(st_geometry(counties_va))
title("Contemporary county boundaries in Virginia")
counties_va_highres <- us_counties(states = "Virginia", resolution = "high")
plot(st_geometry(counties_va_highres))
title("Higher resolution contemporary county boundaries in Virginia")
congress <- us_congressional(states = "California")
plot(st_geometry(congress))
title("Congressional district boundaries in California")
```
## State plane projections
The `state_plane()` function returns EPSG codes and PROJ.4 strings for the State Plane Coordinate System. You can use these to use suitable projections for specific states.
```{r}
va <- us_states(states = "VA", resolution = "high")
plot(st_geometry(va), graticule = TRUE)
va_projection <- state_plane("VA")
va <- st_transform(va, va_projection)
plot(st_geometry(va), graticule = TRUE)
```
## Related packages
Each function returns an `sf` object from the [sf](https://cran.r-project.org/package=sf) package, which can be mapped using the [leaflet](https://cran.r-project.org/package=leaflet) or [ggplot2](https://cran.r-project.org/package=ggplot2) packages.
If you need U.S. Census Bureau boundary files which are not provided by this package, consider using the [tigris](https://cran.r-project.org/package=tigris) package, which downloads those shapefiles.
## License
The historical boundary data provided in this package is available under the CC BY-NC-SA 2.5 license from John H. Long, et al., [Atlas of Historical County Boundaries](https://publications.newberry.org/ahcbp/), Dr. William M. Scholl Center for American History and Culture, The Newberry Library, Chicago (2010). Please cite that project if you use this package in your research and abide by the terms of their license if you use the historical information.
The historical population data for cities is provided by U.S. Census Bureau and Erik Steiner, Spatial History Project, Center for Spatial and Textual Analysis, Stanford University. See the data in [this repository](https://github.com/cestastanford/historical-us-city-populations).
The contemporary data is provided by the U.S. Census Bureau and is in the public domain.
All code in this package is copyright [Lincoln Mullen](http://lincolnmullen.com) and is released under the MIT license.
---
[](https://ropensci.org/)
Owner
- Name: rOpenSci
- Login: ropensci
- Kind: organization
- Email: info@ropensci.org
- Location: Berkeley, CA
- Website: https://ropensci.org/
- Twitter: rOpenSci
- Repositories: 307
- Profile: https://github.com/ropensci
JOSS Publication
USAboundaries: Historical and Contemporary Boundaries of the United States of America
Published
March 28, 2018
Volume 3, Issue 23, Page 314
Authors
Tags
spatial history digital-historyGitHub Events
Total
- Watch event: 4
Last Year
- Watch event: 4
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Lincoln Mullen | l****n@l****m | 201 |
| Jordan Bratt | j****t@g****m | 5 |
| Maëlle Salmon | m****n@y****e | 1 |
| Karthik Ram | k****m@g****m | 1 |
| Jeroen Ooms | j****s@g****m | 1 |
| Hadley Wickham | h****m@g****m | 1 |
| Carl Boettiger | c****g@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 43
- Total pull requests: 7
- Average time to close issues: 6 months
- Average time to close pull requests: about 17 hours
- Total issue authors: 13
- Total pull request authors: 4
- Average comments per issue: 1.42
- Average comments per pull request: 0.14
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- lmullen (23)
- andysouth (7)
- hadley (2)
- CaDaBu (2)
- donojazz (1)
- Cookymonstaknowledge (1)
- jebyrnes (1)
- maelle (1)
- FelipeCarrillo (1)
- jeroen (1)
- sckott (1)
- mymil (1)
- andy-zack (1)
Pull Request Authors
- jfbratt (4)
- maelle (1)
- hadley (1)
- cboettig (1)
Top Labels
Issue Labels
wontfix (1)
help wanted (1)
Pull Request Labels
Packages
- Total packages: 3
- Total downloads: unknown
- Total docker downloads: 88,618
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 7
(may contain duplicates) - Total versions: 12
- Total maintainers: 1
proxy.golang.org: github.com/ropensci/usaboundaries
- Documentation: https://pkg.go.dev/github.com/ropensci/usaboundaries#section-documentation
- License: other
-
Latest release: v0.3.1
published almost 8 years ago
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.9%
Last synced:
6 months ago
proxy.golang.org: github.com/ropensci/USAboundaries
- Documentation: https://pkg.go.dev/github.com/ropensci/USAboundaries#section-documentation
- License: other
-
Latest release: v0.3.1
published almost 8 years ago
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.9%
Last synced:
6 months ago
cran.r-project.org: USAboundaries
Historical and Contemporary Boundaries of the United States of America
- Homepage: http://lincolnmullen.com/software/usaboundaries/
- Documentation: http://cran.r-project.org/web/packages/USAboundaries/USAboundaries.pdf
- License: MIT + file LICENSE
- Status: removed
-
Latest release: 0.4.0
published over 4 years ago
Rankings
Stargazers count: 6.7%
Forks count: 8.3%
Average: 9.5%
Dependent packages count: 11.3%
Dependent repos count: 11.8%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.1.1 depends
- USAboundariesData >= 0.4.0 suggests
- covr * suggests
- dplyr * suggests
- knitr * suggests
- leaflet * suggests
- rmarkdown * suggests
- sf >= 1.0.0 suggests
- testthat >= 0.9.1 suggests
