Description Usage Arguments Value Examples
View source: R/ggplot-helpers.R
Base plot for creating cumulative cases of covid19 data
1 2 3 4 5 | gg_covid_cumulative_exceed_limit(
covid_data_limit,
limit = NULL,
highlight = "Australia"
)
|
covid_data_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. |
ggplot plot
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.