filtered_hist_dynamic: Create histograms from dynamic and ODBA data, aggregated by...

View source: R/exploring_lab_data_dynamic.R

filtered_hist_dynamicR Documentation

Create histograms from dynamic and ODBA data, aggregated by behavior

Description

Creates several image files containing histograms for X_dynamic, Y_dynamic, Z_dynamic, and ODBA aggregated by behavior. One set of images includes histograms for all behaviors in one plot, divided by data type. Another set includes X_dynamic, Y_dynamic, and Z_dynamic histograms in one image and ODBA histogram in another, divided by behavior.

Usage

filtered_hist_dynamic(data, filename)

Arguments

data

A dataframe with columns Behavior, X_dynamic, Y_dynamic, Z_dynamic, ODBA

filename

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

Value

None

Examples

filename <- "Custom_Lady_27Mar17_dynamic.csv"
data <- read.csv(filename)
labelled_data <- data %>% filter(!is.na(Behavior))
filtered_hist_dynamic(labelled_data, "Lady_27Mar17_histogram_filtered")

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