plot_stressed: Comparing Actual Data to Moving Average

Description Usage Arguments Details Value Author(s) Examples

Description

This is a function used to compare actual data to the moving average on a plot.

Usage

1
2
plot_stressed(dataset_heartRate, dataset_time = NULL, order_of_smoother = 3,
      na.remove = TRUE, col_ma = "Red", col_dataset = "black", ...)

Arguments

dataset_heartRate

This should be a vector of the resting heart rate.

dataset_time

This should be a vector of the the time periods.

order_of_smoother

This will be the number of time periods to average for the moving average.

na.remove

Currently, this part of the function doesn't work. The function will always remove any na's in the dataset_time or dataset_heartRate.

col_ma

This is for the color of the moving average.

col_dataset

This defines the color for the actual data.

...

This provides the ability to change some of the properties of the plot.

Details

This function currently plots the the moving average and the actual data. I think I should add some better labels.

Value

It will return a plot.

Author(s)

Corey Kimzey

Examples

1
2
data(tester)
plot_stressed(tester$"Resting Heart Rate")

coreykimzey/heartrate documentation built on May 28, 2019, 7:47 p.m.