This class is used to manipulate and represent the position data of the animal. The first data point is at time resSamplesPerWhlSample and not 0. The data are usually loaded from .whd, .res_samples_per_whl_sample, .sampling_rate_dat and .px_per_cm
The position data likely come from a tracking system (e.g. positrack) in which the y-axis has its origin at the top-left of the screen. In contrast, most plotting functions in R have the y-axis origin at the bottom-left of the screen. This is important to know if you want to find out where landmarks relative to the animal.
sessionA character vector containing the names of the recording session.
pathThe directory in which the files of the session are located.
pxPerCmPixels per centimeter in the x and y position data.
samplingRateDatSampling rate of the .dat files in this recording session
resSamplesPerWhlSampleNumber of samples in the .dat files between each position values.
xWhlA numeric vector containing x data loaded from the .whl file.
yWhlA numeric vector containing y data loaded from the .whl file.
hdWhdA numeric vector containing the head direction of the animal, loaded from .whd file.
xx position of the animal in cm
yy position of the animal in cm
hdHead direction of the animal
linLinearized position of the animal. Used for linear track data.
dirDirection in the linearized position data (0 or 1)
speedLinear speed in cm per sec
angularSpeedAngular speed in degrees per sec
resSample number associated with each position value
defaultXYSmoothingDefault smoothing apply to the x and y position.
minShiftMsMinimum shift of the position vector during a shuffling procedure
percentInvalidPositionPercentage of data points with invalid position
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.