atc_plot_hospitals: Plot of all counties hospital and population

Description Usage Arguments Examples

View source: R/plots.R

Description

Returns a scatter plot comparing Hospital vs Population counts in a given county

Usage

1
2
3
4
5
6
atc_plot_hospitals(
  population_max = 1.1e+07,
  model_colors = list(above = palette_atc$above, below = palette_atc$below, ok =
    palette_atc$ok),
  show_model_results = FALSE
)

Arguments

population_max

Top end limit for population count to display in the plot. Defaults to 11 million.

model_colors

A list of 3 colors to use for counties below, above or at the level of expected hospitals as per the model.

show_model_results

To highlight which counties are above or below the expected number of hospitals

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(accesstocare)

atc_plot_hospitals()

atc_plot_hospitals(show_model_results = TRUE)

atc_plot_hospitals(
  show_model_results = TRUE,
  model_colors = list(above = "green", below = "orange")
)

sol-eng/accesstocare documentation built on Dec. 23, 2021, 3:32 a.m.