Skip to contents

Generates an appropriate time axis for normalized data.

Usage

normalizedTimeAxis(
  norm_length,
  method = "cycle",
  unit = c("percent", "normalized", "degrees")
)

Arguments

norm_length

Length of normalized data

method

Normalization method used

unit

Output unit ("percent", "normalized", "degrees")

Value

Numeric vector of time values

References

Winter DA (2009). "Biomechanics and Motor Control of Human Movement." 4th ed. Wiley.

Examples

# 0-100% axis
t_pct <- normalizedTimeAxis(101, method = "cycle", unit = "percent")

# 0-360 degrees for cycling
t_deg <- normalizedTimeAxis(361, method = "cycle", unit = "degrees")