draw_infected: Create a two panel plot of COVID-19, by count and by density...

Description Usage Arguments Value

View source: R/graphics.R

Description

Create a two panel plot of COVID-19, by count and by density of confirmed cases.

Usage

1
2
3
4
5
6
draw_infected(
  x = read_datahub(state = "Maine"),
  pop = read_census(state = "Maine"),
  N = 1000,
  logscale = TRUE
)

Arguments

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

Value

a list of 2 ggplot2 graphics. Use patchwork to draw together ala result[[1]] + result[[2]]


BigelowLab/stcovid documentation built on May 1, 2020, 3:59 p.m.