Description Usage Arguments Value
Create a two panel plot of COVID-19, by count and by density of confirmed cases.
1 2 3 4 5 6 | draw_infected(
x = read_datahub(state = "Maine"),
pop = read_census(state = "Maine"),
N = 1000,
logscale = TRUE
)
|
x |
tibble of COVID-19 and census data |
pop |
SF MUTLIPOLYGON table of county level geometry and population |
N |
numeric, scaling for density. By default cases per 1000 people. |
logscale |
logical, if TRUE then logscale the the dependent variables |
a list of 2 ggplot2 graphics. Use patchwork to draw together ala
result[[1]] + result[[2]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.