View source: R/plot_histogram.R
plot_histogram | R Documentation |
Plot threshold
plot_histogram(dta, classification, threshold, type, new_window = FALSE, ...)
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 |
a graphic with the output from the classifications
#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 = classify_flap(dta = PAM_data$acceleration, period = 3, to_plot = FALSE) plot_histogram(dta = PAM_data$acceleration$act, type = "flapping", classification = behaviour$classification, threshold = behaviour$threshold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.