Description Usage Arguments Details Value Author(s) Examples
Create an empty US base map in ggplot
1 2 | us_base_map(incl = c("contig", "AK", "HI", "PR"), highlight_states = NULL,
agg_county = T)
|
incl |
Str vector to include AK, HI , and PR |
highlight_states |
character vector of state FIPS codes |
agg_county |
logical, should counties be aggregated tot he state-level? Defaults to |
Creates a base map of the US with options for including AK, HI, and PR. This function was developed from a blog post by Bob Rudis (https://rud.is/b/2014/11/16/moving-the-earth-well-alaska-hawaii-with-r/)
Returns a ggplot
object
Bob Rudis, Julie Padilla
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
##Just the national map
us_base_map()
##National map highlighting states with NERRS
nerr_states <- c('01', '02', '06', '10', '12', '13', '15'
, '23', '24', '25', '27', '28', '33', '34', '36', '37', '39'
, '41', '44', '45', '48', '51', '53', '55', '72')
us_base_map(highlight_states = nerr_states)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.