View source: R/state_map_numprov.R
state_map_numprov | R Documentation |
Creates a geographic map of a state using ggplot2 and tigris of a numeric column in dataset create using 'rollup_FCC'
state_map_numprov(dat, col2map, geogr, yr_dat, state2map, color_pal = "Blues")
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 |
map of state with number of providers according to specified column
state_map_numprov(dat = fcc_dat_2018, col2map = num_prov_25_3,
geogr = "cb", yr_dat = 2018, state2map = "IL", color_pal = "Greens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.