Skip to contents

This function display a plot of pressure time series recorded by a tag

Usage

plot_tag_pressure(
  tag,
  plot_plotly = TRUE,
  warning_pressure_diff = 3,
  warning_stap_length = 12
)

Arguments

tag

a GeoPressureR tag object.

plot_plotly

logical to use plotly.

warning_pressure_diff

Threshold of pressure hourly difference marking as warning (hPa).

warning_stap_length

Threshold number of pressure datapoints flagged as warning (hourly).

Value

a plot or ggplotly object.

Examples

withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
  tag <- tag_create("18LX", quiet = TRUE)
})

plot_tag_pressure(tag, plot_plotly = FALSE)


withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
  tag <- tag_label(tag, quiet = TRUE)
})

plot_tag_pressure(tag)