Skip to contents

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

Usage

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

Arguments

tag

a GeoPressureR tag object.

plot_plotly

logical to use plotly.

quiet

logical to hide warning message about label.

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

owd <- setwd(system.file("extdata", package = "GeoPressureR"))
tag <- tag_create("18LX", quiet = TRUE)
setwd(owd)

plot_tag_pressure(tag, plot_plotly = FALSE)


owd <- setwd(system.file("extdata", package = "GeoPressureR"))
tag <- tag_label(tag, quiet = TRUE)
setwd(owd)

plot_tag_pressure(tag)
#> 
#> ── Pre-processed pressure data length 
#>  All stationary periods have more than 12 datapoints.
#> 
#> ── Pressure difference 
#>  All hourly changes in pressure are below 3 hPa.