state_map_numprov: Map a column in dataset created by 'rollup_FCC'

View source: R/state_map_numprov.R

state_map_numprovR Documentation

Map a column in dataset created by 'rollup_FCC'

Description

Creates a geographic map of a state using ggplot2 and tigris of a numeric column in dataset create using 'rollup_FCC'

Usage

state_map_numprov(dat, col2map, geogr, yr_dat, state2map, color_pal = "Blues")

Arguments

dat

Dataset name, created using rollup_FCC, doesn't have to be subsetted down to 'state2map'

col2map

name of column in 'dat' to map

geogr

Character representation of Census geography 'dat' is on

There are 4 options of census geography, listed from smallest to largest: - cb = Census Block - cbg = Census Block Group - ct = Census Tract - county = County

yr_dat

The year of the FCC dataset, 'dat'

state2map

Two-letter abbreviation of state being mapped

color_pal

Colorbrewer Sequential palette option, default is Blues

Value

map of state with number of providers according to specified column

Examples

state_map_numprov(dat = fcc_dat_2018, col2map = num_prov_25_3,
geogr = "cb", yr_dat = 2018, state2map = "IL", color_pal = "Greens")


kdmulligan/processFCC documentation built on Oct. 30, 2024, 7:43 p.m.