Learn R Programming

trackeR (version 0.0.3)

plot.trackeRdata: Plot training sessions in form of trackeRdata objects.

Description

Plot training sessions in form of trackeRdata objects.

Usage

"plot"(x, session = NULL, what = c("pace", "heart.rate"), threshold = TRUE, smooth = FALSE, trend = TRUE, dates = TRUE, ...)

Arguments

x
An object of class trackeRdata.
session
A numeric vector of the sessions to be plotted, defaults to all sessions.
what
Which variables should be plotted?
threshold
Logical. Should thresholds be applied?
smooth
Logical. Should the data be smoothed?
trend
Logical. Should a smooth trend be plotted?
dates
Logical. Should the date of the session be used in the panel header?
...
Further arguments to be passed to threshold and smootherControl.trackeRdata.

Details

Note that a threshold is always applied to the pace. This (upper) threshold corresponds to a speed of 1.4 meters per second, the preferred walking speed of humans. The lower threshold is 0.

Examples

Run this code
## Not run: 
# data("runs", package = "trackeR")
# ## plot heart rate and pace for the first 3 sessions
# plot(runs, session = 1:3)
# ## plot raw speed data for session 4
# plot(runs, session = 4, what = "speed", threshold = FALSE, smooth = FALSE)
# ## threshold speed variable
# plot(runs, session = 4, what = "speed", threshold = TRUE, smooth = FALSE,
#     variable = "speed", lower = 0, upper = 10)
# ## and smooth (thresholding with default values)
# plot(runs, session = 4, what = "speed", threshold = TRUE,
#     smooth = TRUE, width = 15, parallel = FALSE)
# ## End(Not run)

Run the code above in your browser using DataLab