behavior_hist_static: Create histograms from static data, for each behavior...

View source: R/exploring_lab_data_static.R

behavior_hist_staticR Documentation

Create histograms from static data, for each behavior interval

Description

Creates several image files. Each image file contains histograms aggregating a given data type (X_static, Y_static, Z_static) over each behavior interval for a given behavior. A behavior interval is a time interval in which the behavior remains constant. Each behavior interval is labelled by a number, in chronological order. If there are many behavior intervals for a given behavior, the plot may be hard to read.

Usage

behavior_hist_static(data, filename)

Arguments

data

A dataframe with columns Behavior, X_static, Y_static, Z_static

filename

String containing the first part of filename for the image files to be created

Value

None

Examples

filename <- "Custom_Lady_27Mar17_static.csv"
data <- read.csv(filename)
labelled_data <- data %>% filter(!is.na(Behavior))
behavior_hist_static(labelled_data, "Lady_27Mar17_histogram_behavior")

longjess/hornsharkHMM documentation built on June 15, 2022, 11:32 p.m.