README.md

TSWatch: Time series visualization for the data scientist

Use case

Install locally

First you'll need to have devtools installed:

install.packages('devtools')
library('devtools')
devtools::install(".")

Example of use

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)

Descrition

Time series plot

We have one panel per selected measured variables.

In each panel we have one line plot per selected key.

Versus plot

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.

Assumptions about the data

Work with:

Development

Running the tests:

devtools::test(".")

Tested with:

Architecture

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.

Vocabulary



EBlonkowski/TSwatch documentation built on June 2, 2020, 1:51 p.m.