hc_add_roll_mean.Rd
Add Rolling Means to Highcharts
hc_add_roll_mean(
hc = NULL,
data = NULL,
x = "date",
y = "new_deaths",
name = "location",
group = "group",
size = NULL,
image = NULL,
id_column = NULL,
metrics = c("mean"),
roll_periods = c(5, 10, 15),
lag_periods = NULL,
roll_align = "right",
weights = NULL,
by = 1L,
fill_by = NA,
partial = FALSE,
normalize = TRUE,
opacity = 1,
type = "line",
override_model_groups = F,
color_type = "discrete",
color_palette = NULL,
use_fast = T,
file_path = NULL,
keep_non_lag_variable = F,
point_size = 0,
use_stock = F,
...
)