gg_covid_cumulative_exceed_limit: Base plot for creating cumulative cases of covid19 data

Description Usage Arguments Value Examples

View source: R/ggplot-helpers.R

Description

Base plot for creating cumulative cases of covid19 data

Usage

1
2
3
4
5
gg_covid_cumulative_exceed_limit(
  covid_data_limit,
  limit = NULL,
  highlight = "Australia"
)

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.

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/COVIDreconnoitR documentation built on May 28, 2020, 6:15 a.m.