ridges.conProfile: Ridgeline plots for 'distrProfile' objects

View source: R/concentrationProfile.R

ridges.conProfileR Documentation

Ridgeline plots for distrProfile objects

Description

Ridgeline plots for distrProfile objects

Usage

## S3 method for class 'conProfile'
ridges(x, session = NULL, what = NULL, smooth = FALSE, ...)

Arguments

x

An object of class conProfile as returned by concentration_profile.

session

A numeric vector of the sessions to be plotted, defaults to all sessions.

what

Which variables should be plotted? Defaults to all variables in object (what = NULL).

smooth

Logical. Should unsmoothed profiles be smoothed before plotting?

...

Further arguments to be passed to smoother_control.distrProfile.

Examples

## Not run: 

data('runs', package = 'trackeR')
dProfile <- distributionProfile(runs, what = c('speed', 'heart_rate'))
cProfile <- concentrationProfile(dProfile)
ridges(cProfile, what = "speed")
ridges(cProfile, what = "heart_rate")

## End(Not run)

hfrick/trackeR documentation built on Feb. 3, 2024, 2:30 p.m.