create_map_base: Create a 'ggplot2' map for a single U.S. state

Description Usage Arguments Details Value

View source: R/maps.R

Description

Create the state layer for a ggplot2 plot.

Usage

1
2
3
4
5
create_map_base(state = NULL, show_county = FALSE, fill = "white",
  color = "black", ...)

create_map_base_tx(state = "texas", show_county = FALSE, 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

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

color

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

...

dots. Arguments passed to theme_map()

Details

This is just a wrapper for create_map_state(...) + theme_map(...)

Value

gg.


tonyelhabr/teplot documentation built on May 26, 2019, 5:33 a.m.