Package 'urbnmapr'

Title: State and county shapefiles in sf and tibble format
Description: Provides state and county shapefiles in 'sf' and 'tibble' format that is compatible to map with 'ggplot2'. Shapefiles include Alaska and Hawaii, transformed to be displayed as insets within the continental United States. Heavily inspired by and derived in part from the fiftystater package <https://cran.r-project.org/package=fiftystater> by William Murphy.
Authors: Sarah Strochak [aut, cre], Kyle Ueyama [aut], Aaron Williams [aut], Urban Institute [cph], William Murphy [ctb, cph] (Original author for copied and derived code for fiftystater), Barry Rowlingson [ctb] (Original author for copied and derived code for fiftystater)
Maintainer: Sarah Strochak <[email protected]>
License: GPL-3
Version: 0.0.0.9002
Built: 2025-02-12 04:42:04 UTC
Source: https://github.com/UrbanInstitute/urbnmapr

Help Index


Child Care and Development Fund labels data

Description

Child Care and Development Fund labels data

Usage

ccdf_labels

Format

Data frame with columns

long, lat

Longitude and latitude

state_name, state_abbv

State name and state abbreviation


County shapefile data

Description

County shapefile data, cleaned and parsed into a tibble for easy mapping. Includes various state identifiers for easy merging.

Usage

counties

Format

Data frame with columns

long, lat

Longitude and latitude

county_name, county_fips, fips_class

County name, five-digit FIPS and FIPS class code

state_name, state_abbv, state_fips

State name, postal abbreviation, and two-digit FIPS code

Source

United States Census Bureau, https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html


County labels data

Description

Includes various state identifiers for easy merging.

Usage

counties_labels

Format

Data frame with columns

long, lat

Longitude and latitude

county_name, county_fips, fips_class

County name, five-digit FIPS and FIPS class code

state_name, state_abbv, state_fips

State name, postal abbreviation, and two-digit FIPS code


County data for mapping

Description

County-level data to use for example maps. Includes county FIPS code to match with county shapefile data.

Usage

countydata

Format

Data frame with columns

year

Year of data

county_fips

Five-digit FIPS code

hhhpop

Household population

horate

Homeownership rate

medhhincome

Median household income

Source

Urban Institute Sloan ADRF Database, https://adrf.urban.org


Import different map labels.

Description

get_urbn_labels() loads labels and coordinates for maps from the get_urbn_map() functions. Note: there are currently only sf options for states and territories_states, as these are the only options that have custom labels. To label counties and territories_counties, use geom_sf_text() or geom_sf_label().

Usage

get_urbn_labels(map = "states", sf = FALSE)

Arguments

map

Selection of custom labels. Current options are "states", "counties", "ccdf", "territories", and "territories_counties".

sf

Option indicates whether data is loaded as a tibble() or an sf object


Import different maps

Description

get_urbn_map() loads maps that are different than states and counties

Usage

get_urbn_map(map = "states", sf = FALSE)

Arguments

map

Selection of custom map. Current options are "states", "counties", "ccdf", "territories_states", and "territories_counties".

sf

Option indicates whether data is loaded as a tibble() or an sf object


State data for mapping

Description

State-level data to use for example maps. Includes state FIPS code to match with state shapefile data.

Usage

statedata

Format

Data frame with columns

year

Year of data

state_fips, state_name

Two-digit FIPS code and state name

hhhpop

Household population

horate

Homeownership rate

medhhincome

Median household income

Source

Urban Institute Sloan ADRF Database, https://adrf.urban.org


State shapefile data

Description

State shapefile data, cleaned and parsed into a tibble for easy mapping. Includes various state identifiers for easy merging.

Usage

states

Format

Data frame with columns

long, lat

Longitude and latitude

state_name, state_abbv, state_fips

State name, postal abbreviation, and two-digit FIPS code

Source

United States Census Bureau, https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html


States labels data

Description

States labels data

Usage

states_labels

Format

Data frame with columns

long, lat

Longitude and latitude

state_name, state_abbv

State name and state abbreviation


County shapefile data with U.S. territories

Description

County shapefile data with territories, cleaned and parsed into a tibble for easy mapping. Includes various state identifiers for easy merging.

Usage

territories_counties

Format

Data frame with columns

long, lat

Longitude and latitude

county_name, county_fips, fips_class

County name, five-digit FIPS and FIPS class code

state_name, state_abbv, state_fips

State name, postal abbreviation, and two-digit FIPS code

Source

United States Census Bureau, https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html


Territories labels data

Description

Territories labels data

Usage

territories_labels

Format

Data frame with columns

long, lat

Longitude and latitude

state_name, state_abbv

State name and state abbreviation