View source: R/trackeRdata_zones.R
zones | R Documentation |
Time spent in training zones.
zones(
object,
session = NULL,
what = c("speed"),
breaks = NULL,
parallel = FALSE,
n_zones = 9,
unit_reference_sport = NULL,
...
)
object |
An object of class |
session |
A numeric vector of the sessions to be plotted, defaults to all sessions. |
what |
A vector of variable names. |
breaks |
A list of breakpoints between zones, corresponding to
the variables in |
parallel |
Logical. Should computation be carried out in
parallel? If |
n_zones |
numeric that sets the number of zones for data to be
split into. Default is |
unit_reference_sport |
The sport to inherit units from
(default is taken to be the most frequent sport in
|
... |
Currently not used. |
An object of class trackeRdataZones
.
plot.trackeRdataZones
data('run', package = 'trackeR')
runZones <- zones(run, what = 'speed', breaks = list(speed = c(0, 2:6, 12.5)))
## if breaks is a named list, argument 'what' can be left unspecified
runZones <- zones(run, breaks = list(speed = c(0, 2:6, 12.5)))
## if only a single variable is to be evaluated, 'breaks' can also be a vector
runZones <- zones(run, what = 'speed', breaks = c(0, 2:6, 12.5))
plot(runZones)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.