plot_detection_path: Plot detection paths

Description Usage Arguments Value Examples

View source: R/plot-detection.R

Description

Plot Columbia River White Sturgeon movement paths from VR2 receiver detection data.

Usage

1
2
3
4
5
6
7
8
9
plot_detection_path(
  detection_event,
  deployment,
  reference_rkm,
  receiver_group,
  receiver_group_rkm,
  lims_x,
  lims_y
)

Arguments

detection_event

A tibble of detection path data returned from wsgcolr::detection_event()containing columns 'transmitter_id', 'timestep', 'path', 'array', 'array_rkm'.

deployment

A tibble of the receiver deployments containing columns 'date_deployment', 'date_last_download', 'station', 'array', 'array_rkm'.

reference_rkm

A tibble of reference rkm locations containing columns 'label' and 'rkm'.

receiver_group

A character string of the column containing receiver group (e.g., station, zone, array).

receiver_group_rkm

A character string of the column containing receiver group rkm.

lims_x

A vector of class 'Date' containing x-axis limits.

lims_y

A vector of the numeric y-axis limits.

Value

An object of class 'ggplot'.

Examples

1
2
3
4
5
6
## Not run: 
lims_x = c(min(deployment$date_deployment), max(deployment$date_last_download))
lims_y = c(0, 56)
plot_detection_path(detection, deployment, reference_rkm)

## End(Not run)

sebdalgarno/wsgcolr documentation built on Dec. 22, 2021, 11:17 p.m.