behavior_plot_dynamic: Create line plots from dynamic and ODBA data, which are...

View source: R/exploring_lab_data_dynamic.R

behavior_plot_dynamicR Documentation

Create line plots from dynamic and ODBA data, which are colored by behavior

Description

Create one image file containing line plots for X_dynamic, Y_dynamic, Z_dynamic, and another image file containing a line plot for ODBA. Each line plot is colored by behavior.

Usage

behavior_plot_dynamic(data, filename)

Arguments

data

A dataframe with columns Time, 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))
behavior_plot_dynamic(labelled_data, "Lady_27Mar17_plot_behavior")

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