atc_plot_us_map: Hex plot of the USA

Description Usage Arguments Examples

View source: R/plots.R

Description

Creates a hex plot of all the states. It positions them in a relatively close location where they would be in a map. All of the states have the same size Hex, this makes them easy to find and compare to others.

Usage

1
2
3
4
atc_plot_us_map(
  variable = c("population", "hospitals", "above", "below"),
  colors = list(high = palette_atc$high, low = palette_atc$low)
)

Arguments

variable

The variable to use as the driver for the color or level of transparency that will be displayed. There are four options: population of the state, the number of hospitals in that state, highlight states with counties with counties above or below the model's predictions. The values that can be used are: population, hospitals, abover or below. The default is population.

colors

A list of two colors. One set the value of the high number and the other for the low number.

Examples

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

atc_plot_us_map()

atc_plot_us_map("below")

atc_plot_us_map(
  "hospitals",
  colors = list(high = "orange", low = "blue")
)

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