plot_sta_history: Plots processed station history

Description Usage Arguments Details Value See Also Examples

View source: R/s1_proc_inputs.R

Description

This function takes a processed detection history returned by proc_dets() and plots the station history.

Usage

1
plot_sta_history(proc_det, set_par = TRUE, use_ggplot = FALSE, ...)

Arguments

proc_det

A data.frame of class dets as returned by the function proc_dets().

set_par

TRUE or FALSE. Should the function change the graphical parameters or not? (This should be FALSE only if the user wishes to manually set the graphical parameters).

use_ggplot

TRUE or FALSE. Should the plot be made using ggplot2? Defaults to FALSE and uses base R plotting.

...

Additional arguments (not currently implemented)

Details

Details here

Value

Plots a figure of station activity over time.

See Also

proc_dets for details on the formatting of the data.frame proc_det

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#Load the example data set
data(acoustic)

#Process detections
proc.det <- proc_dets(det = acoustic$detections, sta = acoustic$stations)

#Plot station history
plot_sta_history(proc.det)

#Plot station history with ggplot2
library(ggplot2)
(p <- plot_sta_history(proc.det, use_ggplot = TRUE)) #ggplot
#Change options on ggplot
p +
theme_bw() +
labs(title = "Detection History")

bsmity13/ADePTR documentation built on Nov. 9, 2019, 12:43 a.m.