Learn R Programming

cycleRtools (version 1.0.0)

Wbal_plots: W' balance plots.

Description

Generate three plots that effectively summarise a whole cycling dataset.

Usage

Wbal_plots(data, x = 1, CP = NULL, n = 3, xlim = NULL)

Arguments

data
a formatted dataset produced by read*().
x
numeric; 1 will plot against time and 2 will plot against distance.
CP
a value for critical power annotation.
n
how many plots should be created (see details).
xlim
passed to plot.

Value

  • a variable number of plots.

Details

When passed a formatted dataset, creates a column of three plots:
  1. W' balance.
  2. Power (raw with 25 sec moving averaged overlaid).
  3. Elevation profile
How many of these plots are shown is controlled by the n argument.

See Also

Wbal.

Examples

Run this code
data(cycling_data)
Wbal_plots(cycling_data, x = 2, CP = 300)
# Show just W' balance.
Wbal_plots(cycling_data, x = 2, n = 1)
# Zoom all plots to 20-40 km.
Wbal_plots(cycling_data, x = 2, CP = 300, xlim = c(20, 40))

Run the code above in your browser using DataLab