gg_covid_incidence_exceed_limit: Base plot for creating incident cases chart of covid19 data

Description Usage Arguments Value Examples

Description

Base plot for creating incident cases chart of covid19 data

Usage

1
2
3
4
5
6
7
gg_covid_incidence_exceed_limit(
  covid_data_limit,
  limit = NULL,
  highlight = "Australia",
  smooth = FALSE,
  span = 0.1
)

Arguments

covid_data_limit
  • covid19 with added limit (from add_days_since_limit())

limit

the number of days since reached a limit (added for titling graphic). Default is 100.

highlight

the name of the country to highlight, default is Australia.

smooth

add smoother, default is false

span

span numeric, span to add to smoother.

Value

ggplot plot

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 covid_data_since <- covid_data %>%
   add_days_since_limit(limit = 100) %>%
   dplyr::filter(days_since_limit >= 0) %>%
   dplyr::filter(country_region %in% c("Australia", "New Zealand"))

gg_covid_cumulative_exceed_limit(covid_data_since)

## End(Not run)

CBDRH/covidrecon documentation built on May 27, 2020, 9:41 a.m.