Time series data exploration: explore patterns in time series data
There are different challenges coming with time series EDA:
Long time series -> when plotting 10k+ points in a typical plot it becomes quickly over crowded and difficult to make out interesting patterns.
Solution a zoomable time series plot. With a few clicks of the mouse you can restrict the plot to a certain time interval.
Many time series -> It is very common to have multiple time series interacting. If dealing with sensor data, there would be one stream per sensor. If dealing with sales data, we could have one stream per store or even product.
Solution You can select the time series interactively in the application. The selection has 2 axis: keys and measured variables.
Forecast comparison: we are forecasting one or multiple time series. We want to compare the forecast to the real and compare the different forecast. There are many forecast: 1 step ahead, 2 steps ahead, different algorithms.
First you'll need to have devtools installed:
install.packages('devtools')
library('devtools')
devtools::install(".")
Let's see an example with the a10 univariate dataset from fpp2:
library(fpp2) # for a10 dataset
library(TSwatch)
TSwatch::look_at_ts(a10)
Pedestrian dataset:
library(TSwatch)
library(tsibble)
TSwatch::look_at_ts(pedestrian)
We have one panel per selected measured variables.
In each panel we have one line plot per selected key.
It is a group of scatter plots.
What is sure is that a single measure variable is on the horizontal axis.
For each variable we have one panel.
Each panel is a scatter plot with xvar
horizontal and the variable vertical.
There is one color per key.
Work with:
Running the tests:
devtools::test(".")
Tested with:
Different variables are assumed to belong to different scales and go to different panels.
Different keys same variable goes to the same panel.
1 panel per variable, 1 trace per key.
So for the forecasting exploration we would need to put all the forecasts as different keys. This would force duplicating the external variables, which is annoying but not so bad.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.