us_base_map: US Base Map

Description Usage Arguments Details Value Author(s) Examples

View source: R/us_base_map.R

Description

Create an empty US base map in ggplot

Usage

1
2
us_base_map(incl = c("contig", "AK", "HI", "PR"), highlight_states = NULL,
  agg_county = T)

Arguments

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 TRUE

Details

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/)

Value

Returns a ggplot object

Author(s)

Bob Rudis, Julie Padilla

Examples

 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)

LimnoTech/limnotools documentation built on May 17, 2019, 9:10 a.m.