Description Usage Arguments Value See Also Examples
Provide trend plot for cumulative and daily cases with
facets of vars_1 = Case_Type
1 2 3 4 5 6 7 8 9 10 | ggts_cum_daily(
data,
y_cum = .data$Cases,
y_daily = .data$Daily_Cases,
mean_daily = .data$Mean_Daily_Cases,
country,
span = 7,
weeks = 12,
...
)
|
data |
A data frame |
y_cum |
Unquoted df data-variable of the cumulative cases |
y_daily |
Unquoted df data-variable of the daily cases |
mean_daily |
Unquoted df data-variable of the daily rolling mean data |
country |
Unquoted df data-variable of the countries |
span |
Numeric, span used for rolling mean calculation |
weeks |
Numeric, number of time range weeks weeks for the daily data,
dates are provided in column |
... |
Other arguments passed on to |
plot object of mode plot
ggts_trend_facet, ggts_conf_deaths_facet and ggplot2::ggplot
1 2 | # Corona data of "Germany")
ggts_cum_daily(corona_data, country = "Germany", weeks = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.