plot_artifacts: Plot Artifacts

Description Usage Arguments Details See Also

View source: R/plot_artifacts.R

Description

plot_artifacts returns a plot of time series with artifact intervals marked in red with dotted lines. Extreme values are marked with blue dotted lines.

Usage

1
plot_artifacts(data, time, measure, artifacts, oor = NULL, trial = NULL)

Arguments

data

Data frame containing time series.

time

Name of variable that gives time units. Will be plotted on the x- axis.

measure

Name of variable containing the time series of measures. Will be plotted on the y-axis.

artifacts

Name of variable containing logical vector that indexes which observations in the measure time series are artifacts. See get_artifacts.

oor

Optional name of variable containing logical vector that indexes which observations in the measure time series are out of range. See get_oor.

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 get_artifacts and optionally get_oor functions on one or more time series. If many artifacts are going undetected, try decreasing the max_velocity setting. If there are too many false positives, try increasing it.

Plotting is performed using ggplot and you can modify the aesthetics of the plot by appending layers using the + operator.

See Also

get_artifacts, ggplot


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