plot_breakpoints_behav: Internal function for plotting breakpoints over each of the...

Description Usage Arguments Value

View source: R/segmentation_helper_functions.R

Description

An internal function for plotting the results of the segmentation model.

Usage

1
plot_breakpoints_behav(data, as_date, var_names, var_labels, brkpts)

Arguments

data

A data frame for a single animal ID that contains columns for the ID, date or time variable, and each of the movement variables that were analyzed by segment_behavior. Data streams can be in continuous or discrete form.

as_date

logical. If TRUE, plots breakpoints and data streams over the date. By default, this is set to FALSE.

var_names

A vector of the column names for the movement variables to be plotted over time.

var_labels

A vector of the labels to be plotted on the y-axis for each movement variable. Set to NULL by default.

brkpts

A data frame that contains the breakpoints associated with each animal ID. This data frame is returned by get_breakpts.

Value

A line plot for each movement variable showing how the estimated breakpoints relate to the underlying data. Depending on the user input for var_names, this may either be on the scale of the original continuous data or the discretized data.


bayesmove documentation built on Oct. 22, 2021, 9:08 a.m.