Learn R Programming

eRTG3D (version 0.7.0)

turnLiftStepHist: Three dimensional histogram

Description

Derives a three dimensional distribution of a turn angle, lift angle and step length, using the Freedman<U+2013>Diaconis rule for estimating the number of bins.

Usage

turnLiftStepHist(
  turn,
  lift,
  step,
  printDims = TRUE,
  rm.zeros = TRUE,
  maxBin = 25
)

Arguments

turn

numeric vector of turn angles

lift

numeric vector of lift angles

step

numeric vector of step lengths

printDims

logical: should dimensions of tld-Cube be messaged?

rm.zeros

logical: should combinations with zero probability be removed?

maxBin

numeric scalar, maximum number of bins per dimension of the tld-cube.

Value

A three dimensional histogram as data.frame

Examples

Run this code
# NOT RUN {
niclas <- track.properties.3d(niclas)[2:nrow(niclas), ]
turnLiftStepHist(niclas$t, niclas$l, niclas$d)
# }

Run the code above in your browser using DataLab