knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.height = 5, fig.width = 7 )
This vignette gives you a quick tour of the time series datasets embedded in echos
:
m4_data
: Six monthly time series drawn from the well‑known M4 Forecasting Competition.synthetic_data
: Ten synthetic time series, useful for teaching, prototyping and testing.library(echos) library(tidyverse) library(tsibble)
The dataset m4_data
is a tsibble
with six monthly time series from the M4 Forecasting Competition. The datasets contains the following time series:
m4_data
p <- ggplot() p <- p + geom_line( data = m4_data, aes( x = index, y = value ) ) p <- p + facet_wrap( ~series, ncol = 2, scales = "free") p <- p + labs(x = "Time") p <- p + labs(y = "Value") p
The dataset synthetic_data
is a tibble
with ten synthetic time series. The dataset contains the following time series:
synthetic_data
p <- ggplot() p <- p + geom_line( data = synthetic_data, aes( x = index, y = value ) ) p <- p + facet_wrap( ~factor( variable, levels = c( "Square Wave", "Sawtooth Wave", "Harmonic Wave", "Harmonic Wave w/ Trend", "Amplitude Modulated Wave", "Frequency Modulated Wave", "AR(1) Process", "MA(2) Process", "White Noise Process", "Random Walk Process" )), ncol = 2, scales = "free") p <- p + labs(x = "Time") p <- p + labs(y = "Value") p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.