Create the state layer for a ggplot2 plot.

create_map_state(state = NULL, show_county = TRUE, fill = "white",
  color = "black")

Arguments

state

character for state name. May either be an abbreviation or full name and may be either lower-case or upper-case.

show_county

logical. Whether or not to show county lines for specified state.

fill, color

character. Either a hex code or a valid color name. Parameters passed directly to ggplot2::geom_polygon().

Value

gg.

Details

Only works for a single state. It is expected that theme_te_map() is called beforehand.

See also

ggplot2::map_data()