Description Usage Arguments Details See Also
View source: R/plot_artifacts.R
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.
1 |
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 |
oor |
Optional name of variable containing logical vector that indexes
which observations in the |
trial |
If the data contains multiple time series, name of the variable
that identifies each time series. Will be plotted using |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.