Description Usage Arguments Value Examples
View source: R/plot_baselines.R
Plot results of cv_baselines (by ggplot2
)
1 2 3 4 5 6 7 8 9 10 11 |
splits |
list of prediction data.frames |
col_date |
Date column in data.frame, default to "index" |
col_value |
Value column in data.frame, default to "value" |
col_group |
Group column in data.frame, default to "type" (e.g. "Actual", "Naive", ...) - see example |
title |
diagram title |
colors |
named character vector to fit color to type |
date_type |
string vector - one of "datetime", "Date" or "character" |
ncol |
Number of columns |
scale |
NULL or two Date values to scale x-axis |
ggplot2 object
1 2 3 4 5 6 | data <- tsRNN::fc_baseline
plot_baselines_samples(
splits = list(data, data),
colors = c("Actual" = "black", "Snaive" = "blue", "Holt" = "green"),
ncol = 2L
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.