concentration_profile: Generic method for concentration profiles

View source: R/trackeR.R

concentration_profileR Documentation

Generic method for concentration profiles

Description

Generic method for concentration profiles

Usage

concentration_profile(object, session = NULL, what = NULL, ...)

concentrationProfile(object, session = NULL, what = NULL, ...)

Arguments

object

An object of class trackeRdata or distrProfile.

session

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

what

The variables for which the distribution profiles should be generated. Defaults to all variables in object (what = NULL).

...

Currently not used.

See Also

concentration_profile.distrProfile concentration_profile.trackeRdata

Examples

## Not run: 
## Compute conecntration profiles from distribution profiles
data('run', package = 'trackeR')
dProfile <- distributionProfile(run, what = 'speed', grid = seq(0, 12.5, by = 0.05))
cProfile <- concentrationProfile(dProfile)
plot(cProfile, smooth = FALSE)
plot(cProfile)

## And now directly from the 'trackeRdata' object, which is a
## considerably faster if all that is needed are the concentration
## profiles
cProfile <- concentrationProfile(runs, what = 'speed',
                                 limits = list(speed = c(0, 12.5)))
plot(cProfile, smooth = FALSE)
ridges(cProfile)
plot(cProfile, smooth = TRUE)

## End(Not run)

trackeR documentation built on May 29, 2024, 5:04 a.m.