11---
22output : github_document
33pagetitle : Historical and Contemporary Boundaries of the United States of America
4+ editor_options :
5+ markdown :
6+ wrap : 72
47---
58
69<!-- README.md is generated from README.Rmd. Please edit that file -->
@@ -17,38 +20,47 @@ set.seed(87737)
1720# USAboundaries
1821
1922<!-- [](https://cran.r-project.org/package=USAboundaries) -->
20- [ ![ JOSS Status] ( https://joss.theoj.org/papers/3458a33133aa6c069ab4dd8df0b5f3b5/status.svg )] ( https://doi.org/10.21105/joss.00314 )
23+
24+ [ ![ JOSS
25+ Status] ( https://joss.theoj.org/papers/3458a33133aa6c069ab4dd8df0b5f3b5/status.svg )] ( https://doi.org/10.21105/joss.00314 )
2126[ ![ R-CMD-check] ( https://github.com/ropensci/USAboundaries/actions/workflows/R-CMD-check.yaml/badge.svg )] ( https://github.com/ropensci/USAboundaries/actions/workflows/R-CMD-check.yaml )
22- [ ![ Codecov test coverage] ( https://codecov.io/gh/ropensci/USAboundaries/graph/badge.svg )] ( https://app.codecov.io/gh/ropensci/USAboundaries )
27+ [ ![ Codecov test
28+ coverage] ( https://codecov.io/gh/ropensci/USAboundaries/graph/badge.svg )] ( https://app.codecov.io/gh/ropensci/USAboundaries )
2329![ r-universe] ( https://ropensci.r-universe.dev/USAboundaries/badges/version )
2430
25-
2631## Overview
2732
28- This R package includes contemporary state, county, and Congressional district
29- boundaries, as well as zip code tabulation area centroids. It also includes
30- historical boundaries from 1629 to 2000 for states and counties from the
31- Newberry Library's [ Atlas of Historical County
32- Boundaries] ( https://publications.newberry.org/ahcbp/ ) , as well as historical
33+ Note: Due to U.S. Government Shutdown, state boundaries are unable to be
34+ updated.
35+
36+ This R package includes contemporary state, county, and Congressional
37+ district boundaries, and zip code tabulation area centroids. It also
38+ includes historical boundaries from 1629 to 2000 for states and counties
39+ from the Newberry Library's [ Atlas of Historical County
40+ Boundaries] ( https://publications.newberry.org/ahcbp/ ) and historical
3341city population data from Erik Steiner's "[ United States Historical City
3442Populations,
35431790-2010] ( https://github.com/cestastanford/historical-us-city-populations ) ."
36- The package has some helper data, including a table of state names,
37- abbreviations, and FIPS codes, and functions and data to get [ State Plane
38- Coordinate System] ( https://en.wikipedia.org/wiki/State_Plane_Coordinate_System )
3944
45+ The package has some helper data, including a table of state names,
46+ abbreviations, and FIPS codes, and functions and data to get [ State
47+ Plane Coordinate
48+ System] ( https://en.wikipedia.org/wiki/State_Plane_Coordinate_System )
4049projections as EPSG codes or PROJ.4 strings.
41- This package can serve a number of purposes. The spatial data can be joined to
42- any other kind of data in order to make thematic maps. Unlike other R packages,
43- this package also contains historical data for use in analyses of the recent or
44- more distant past. See the [ "A sample analysis using
50+
51+ This package can serve a number of purposes. The spatial data can be
52+ joined to any other kind of data in order to make thematic maps. Unlike
53+ other R packages, this package also contains historical data for use in
54+ analyses of the recent or more distant past. See the [ "A sample analysis
55+ using
4556USAboundaries"] ( https://docs.ropensci.org/USAboundaries/articles/usaboundaries-sample-analysis.html )
46- vignette for an example of how the package can be used for both historical and
47- contemporary maps.
57+ vignette for an example of how the package can be used for both
58+ historical and contemporary maps.
4859
4960## Citation
5061
51- If you use this package in your research, we would appreciate a citation.
62+ If you use this package in your research, we would appreciate a
63+ citation.
5264
5365``` {r}
5466citation("USAboundaries")
@@ -58,41 +70,45 @@ citation("USAboundaries")
5870
5971You can install this package from CRAN.
6072
61- ```
73+ ```
6274install.packages("USAboundaries", repos = c("https://ropensci.r-universe.dev"))
6375```
6476
65- Almost all of the data for this package is provided by the [ USAboundariesData
66- package] ( https://github.com/ropensci/USAboundariesData ) . That package will be
67- automatically installed (with your permission) from the [ rOpenSci package
68- repository] ( https://ropensci.r-universe.dev ) the first time that you need it.
77+ Almost all of the data for this package is provided by the
78+ [ USAboundariesData
79+ package] ( https://github.com/ropensci/USAboundariesData ) . That package
80+ will be automatically installed (with your permission) from the
81+ [ rOpenSci package repository] ( https://ropensci.r-universe.dev ) the first
82+ time that you need it.
6983
7084Or you can install the development versions from GitHub:
7185
72- ```
86+ ```
7387install.packages("USAboundaries", repos = c("https://ropensci.r-universe.dev"))
7488install.packages("USAboundariesData", repos = c("https://ropensci.r-universe.dev"))
7589```
7690
7791## Use
7892
7993This package provides a set of functions, one for each of the types of
80- boundaries that are available. These functions have a consistent interface.
94+ boundaries that are available. These functions have a consistent
95+ interface.
8196
82- Passing a date to ` us_states() ` , ` us_counties() ` , and ` us_cities() ` returns the
83- historical boundaries for that date. If no date argument is passed, then
84- contemporary boundaries are returned. The functions ` us_congressional() ` and
85- ` us_zipcodes() ` only offer contemporary boundaries.
97+ Passing a date to ` us_states() ` , ` us_counties() ` , and ` us_cities() `
98+ returns the historical boundaries for that date. If no date argument is
99+ passed, then contemporary boundaries are returned. The functions
100+ ` us_congressional() ` and ` us_zipcodes() ` only offer contemporary
101+ boundaries.
86102
87103For almost all functions, pass a character vector of state names or
88104abbreviations to the ` states = ` argument to return only those states or
89105territories.
90106
91- For certain functions, more or less detailed boundary information is available
92- by passing an argument to the ` resolution = ` argument.
107+ For certain functions, more or less detailed boundary information is
108+ available by passing an argument to the ` resolution = ` argument.
93109
94- See the examples below to see how the interface works, and see the documentation
95- for each function for more details.
110+ See the examples below to see how the interface works, and see the
111+ documentation for each function for more details.
96112
97113``` {r}
98114library(USAboundaries)
@@ -125,9 +141,9 @@ title("Congressional district boundaries in California")
125141
126142## State plane projections
127143
128- The ` state_plane() ` function returns EPSG codes and PROJ.4 strings for the State
129- Plane Coordinate System. You can use these to use suitable projections for
130- specific states.
144+ The ` state_plane() ` function returns EPSG codes and PROJ.4 strings for
145+ the State Plane Coordinate System. You can use these to use suitable
146+ projections for specific states.
131147
132148``` {r}
133149va <- us_states(states = "VA", resolution = "high")
@@ -141,33 +157,49 @@ plot(st_geometry(va), graticule = TRUE)
141157## Related packages
142158
143159Each function returns an ` sf ` object from the
144- [ sf] ( https://cran.r-project.org/package=sf ) package, which can be mapped using
145- the [ leaflet] ( https://cran.r-project.org/package=leaflet ) or
160+ [ sf] ( https://cran.r-project.org/package=sf ) package, which can be mapped
161+ using the [ leaflet] ( https://cran.r-project.org/package=leaflet ) or
146162[ ggplot2] ( https://cran.r-project.org/package=ggplot2 ) packages.
147163
148- If you need U.S. Census Bureau boundary files which are not provided by this
149- package, consider using the [ tigris] ( https://cran.r-project.org/package=tigris )
150- package, which downloads those shapefiles.
164+ If you need U.S. Census Bureau boundary files not provided by this
165+ package, consider using the
166+ [ tigris] ( https://cran.r-project.org/package=tigris ) package, which
167+ downloads those shapefiles.
151168
152- ## License
169+ USAboundaries differs from tigris in a few ways:
170+
171+ - Boundary files are contained within the data package while tigris
172+ downloads the files from US Census.
153173
154- The historical boundary data provided in this package is available under the CC
155- BY-NC-SA 2.5 license from John H. Long, et al., [ Atlas of Historical County
156- Boundaries] ( https://publications.newberry.org/ahcbp/ ) , Dr. William M. Scholl
157- Center for American History and Culture, The Newberry Library, Chicago (2010).
158- Please cite that project if you use this package in your research and abide by
159- the terms of their license if you use the historical information.
174+ - USAboundaries uses Cartographic Boundary Files (CBFs) that are
175+ simplified representations of TIGER/Line shapefiles. They are much
176+ smaller in file size, making rendering much faster on the screen.
160177
161- The historical population data for cities is provided by U.S. Census Bureau and
162- Erik Steiner, Spatial History Project, Center for Spatial and Textual Analysis,
163- Stanford University. See the data in [ this
178+ - Data files contain historical boundary and population data dating as
179+ far back as 1629.
180+
181+ ## License
182+
183+ The historical boundary data provided in this package is available under
184+ the CC BY-NC-SA 2.5 license from John H. Long, et al., [ Atlas of
185+ Historical County Boundaries] ( https://publications.newberry.org/ahcbp/ ) ,
186+ Dr. William M. Scholl Center for American History and Culture, The
187+ Newberry Library, Chicago (2010). Please cite that project if you use
188+ this package in your research and abide by the terms of their license if
189+ you use the historical information.
190+
191+ The historical population data for cities is provided by U.S. Census
192+ Bureau and Erik Steiner, Spatial History Project, Center for Spatial and
193+ Textual Analysis, Stanford University. See the data in [ this
164194repository] ( https://github.com/cestastanford/historical-us-city-populations ) .
165195
166- The contemporary data is provided by the U.S. Census Bureau and is in the public
167- domain.
196+ The contemporary data is provided by the U.S. Census Bureau and is in
197+ the public domain.
168198
169- All code in this package is copyright [ Lincoln Mullen ] ( http://lincolnmullen.com )
170- and is released under the MIT license.
199+ All code in this package is copyright [ Lincoln
200+ Mullen ] ( http://lincolnmullen.com ) and is released under the MIT license.
171201
172- ---
173- [ ![ rOpenSci footer] ( https://ropensci.org//public_images/github_footer.png )] ( https://ropensci.org/ )
202+ ------------------------------------------------------------------------
203+
204+ [ ![ rOpenSci
205+ footer] ( https://ropensci.org//public_images/github_footer.png )] ( https://ropensci.org/ )
0 commit comments