plot_comparison: Plot Comparison of Time Series

Description Usage Arguments Details

View source: R/plot_comparison.R

Description

plot_comparison helps to visualize the transformation of your original time series into a subsequent, cleaner version.

Usage

1
plot_comparison(data, time, pre, post, trial = NULL)

Arguments

data

Data frame containing both time series.

time

Name of variable that gives time units.

pre

Name of variable containing the pre-processed time series.

post

Name of variable containing the post-processed time series.

trial

If the data contains multiple time series, name of the variable that identifies each time series. Will be plotted using facet_wrap.

Details

Use this plotting function to evaluate the performance of the fix_artifacts, normalize, and/or low_pass_filter functions on cleaning your time series. Note that if your original and cleaned time series are at different scales (e.g., if you are comparing a pre-normed version to a post-normed version), the original time series will be projected to the scale of the cleaned time series.


jashu/itrak documentation built on May 9, 2020, 1:57 p.m.