Description Usage Arguments Examples
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.
1 2 3 4 | atc_plot_us_map(
variable = c("population", "hospitals", "above", "below"),
colors = list(high = palette_atc$high, low = palette_atc$low)
)
|
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. |
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")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.