plotTHLD: Plot threshold

View source: R/plotTHLD.R

plotTHLDR Documentation

Plot threshold

Description

Plot threshold

Usage

plotTHLD(dta, classification, threshold, type, new_window = FALSE, ...)

Arguments

dta

Raw acceleration or pressure data used to make the classification

classification

Is the result of the classification. is in the format of a vector of numbers used for low or high activity

threshold

The threshold between different classes

type

The type of classification used i.e "flapping" or soar-gliding

new_window

whether you want to plot it in a new window or not

...

any additional parameters used by graphics::hist

Value

a graphic with the output from the classifications

Examples

##specify the data location
#data(hoopoe)
#PAM_data=hoopoe

#PAM_data$acceleration = PAM_data$acceleration[((PAM_data$acceleration$date >= "2016-07-30")
#& (PAM_data$acceleration$date <= "2017-06-01")),]

#behaviour = classifyFLAP(dta = PAM_data$acceleration,
#                         period = 3,
#                         toPLOT = FALSE)

#plotTHLD(dta = PAM_data$acceleration$act,
#         type = "flapping",
#         classification = behaviour$classification,
#         threshold = behaviour$threshold)


KiranLDA/PAMLr documentation built on March 6, 2023, 1:40 p.m.