atc_plot_state_map.Rd
Returns a plot with actual shape of the state, and highlights each county with a color. The color will depend on which variable is being used to plot.
atc_plot_state_map( state = "Florida", variable = c("model", "population", "hospitals"), colors = list(high = palette_atc$high, low = palette_atc$low), model_colors = list(above = palette_atc$above, below = palette_atc$below, ok = palette_atc$ok), top_cities = 3 )
state | The state's name. Use "All US" if a map of all states is to be plotted. |
---|---|
variable | The variable to use for the plot. Possible values are: model, population or hospitals. |
colors | A list of two colors. One set the value of the high number and the other for the low number. |
model_colors | A list of 3 colors to use for counties below, above or at the level of expected hospitals as per the model. |
top_cities | Plots the most populated cities. The default to plot the 3 most populated cities. To avoid displaying any cities, use 0. |
atc_plot_state_map("New York")atc_plot_state_map( "New York", model_colors = list(above = "blue", below = "orange", ok = "white") )atc_plot_state_map( "New York", variable = "population" )atc_plot_state_map( "New York", variable = "population", colors = list(low = "orange", high = "blue") )atc_plot_state_map("New York", top_cities = 6)