Basic map of county outlines within specified state(s) Not used by shiny app
Source:R/MAP_FUNCTIONS.R
map_counties_in_state.Rd
Basic map of county outlines within specified state(s) Not used by shiny app
Arguments
- ST
a vector of one or more state abbreviations, like
ST = "ME" or ST = c("de", "RI"), or
ST = fips2state_abbrev(fips_state_from_statename(c("Rhode Island", "district of columbia")))
or e.g., all counties in EPA Region 1:
ST = stateinfo$STstateinfo$REGION == 1
- colorcolumn
name of column to use in setting colors of counties on map, but must be one returned by
shapes_counties_from_countyfips()
like "STATE_NAME"- type
must be "leaflet" or can be "mapview" if installed and loaded
Examples
if (FALSE) { # \dontrun{
map_counties_in_state(ST = c('id', 'mt'))
map_counties_in_state(ST = c('id', 'mt'),
colorcolumn = "STATE_NAME")
map_counties_in_state(ST = c('id', 'mt'), type = "mapview")
map_counties_in_state(ST = c('id', 'mt'), type = "mapview",
colorcolumn = "STATE_NAME")
map_counties_in_state(
ST = c( 'md', 'pa'),
type = "mapview", colorcolumn = "POP_SQMI")
} # }