Learn R Programming

trackeR (version 0.0.3)

plot.conProfile: Plot concentration profiles.

Description

Plot concentration profiles.

Usage

"plot"(x, session = NULL, what = c("speed", "heart.rate"), multiple = FALSE, smooth = TRUE, ...)

Arguments

x
An object of class conProfile as returned by concentrationProfile.
session
A vector of the sessions to be plotted, defaults to all sessions. Either a character vector with the session names, e.g., c("Session3", "Session4") or a numeric vector with the relative position of the session(s).
what
Which variables should be plotted?
multiple
Logical. Should all sessions be plotted in one panel?
smooth
Logical. Should unsmoothed profiles be smoothed before plotting?
...
Currently not used.

Examples

Run this code
data("runs", package = "trackeR")
dProfile <- distributionProfile(runs, session = 1:3,
    what = "speed", grid = seq(0, 12.5, by = 0.05))
cProfile <- concentrationProfile(dProfile)
plot(cProfile, smooth = FALSE)
plot(cProfile)

Run the code above in your browser using DataLab