behav_seg_image: Internal function that transforms a vector of bin numbers to...

View source: R/segmentation_helper_functions.R

behav_seg_imageR Documentation

Internal function that transforms a vector of bin numbers to a presence-absence matrix

Description

Transforms vectors of bin numbers into full matrices for plotting as a heatmap.

Usage

behav_seg_image(dat, nbins)

Arguments

dat

A data frame for a single animal ID that contains only columns for the ID and each of the movement variables that were analyzed by segment_behavior. The ID column must be first.

nbins

numeric. A vector of the number of bins used to discretize each movement variable. These must be in the same order as the columns within data.

Value

A list where each element stores the presence-absence matrix for each of the movement variables.


joshcullen/bayesmove documentation built on Oct. 6, 2023, 3:28 a.m.