Description Usage Arguments Value Examples
View source: R/plot_baselines.R
Plot results of baselines (by ggplot2
)
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
data.frame containing "Date", "value" and "group" |
col_date |
Date column in |
col_value |
Value column in |
col_group |
Group column in |
title |
diagram title |
size |
line size |
alpha |
line alpha value |
colors |
named character vector to fit color to type |
legend |
legend position |
scale |
NULL or two Date values to scale x-axis |
ggplot2 object
1 2 3 4 | plot_baselines(
data = tsRNN::fc_baseline,
colors = c("Actual" = "black", "Snaive" = "blue", "Holt" = "green")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.