Description Usage Arguments Details Value See Also Examples
View source: R/s1_proc_inputs.R
This function takes a processed detection history returned by
proc_dets() and plots a map showing the relative number
of detections per station.
1 2 3 4 |
proc_det |
A |
base_layers |
A |
base_borders |
A |
base_cols |
A |
leg_pos |
Indicates where the legend should be. Can be any |
xlim |
Vector of length 2 giving the limits of the plot along the x-axis (longitude or easting). |
ylim |
Vector of length 2 giving the limits of the plot along the y-axis (latitude or northing). |
set_par |
|
return_df |
|
use_ggplot |
|
... |
Additional arguments (not currently implemented) |
Details here.
Note that if both return_df and use_ggplot
are TRUE, then function returns a list with elements
df containing the data.frame of aggregated detections and
ggplot containing the ggplot object for the user to
further manipulate.
Plots a figure of station activity over time.
proc_dets for details on the formatting of the
data.frame proc_det
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #Load the example data set
data(acoustic)
#Process detections
proc.det <- proc_dets(det = acoustic$detections, sta = acoustic$stations)
#Map detections with all defaults
map_dets(proc.det)
#Map detections with custom settings
map_dets(proc_det = proc.det,
base_layers = list(acoustic$study_area, acoustic$land),
base_cols = list("gray30", "wheat"), base_borders = list(NA, "seagreen"),
xlim=c(-64.628, -64.612), ylim=c(17.770, 17.795),
leg_pos = "topleft", sta_col = "blue", sta_bg = "orange")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.