Skip to contents

Display a pressurepath data.frame as a time series or histogram

Usage

plot_pressurepath(
  pressurepath,
  type = "timeseries",
  sd = attr(pressurepath, "sd"),
  warning_std_thr = 3,
  plot_plotly = TRUE
)

Arguments

pressurepath

a GeoPressureR pressurepath data.frame.

type

"timeseries" (default), "histogram", or "altitude"

sd

standard deviation of the pressure error . numeric of length 1 or number of stationary periods.

warning_std_thr

Threshold of outlier, coefficient of the z-score

plot_plotly

logical to use plotly

Value

a plot or ggplotly object.

See also

Examples

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

path <- data.frame(
  stap_id = tag$stap$stap_id,
  lat = c(48.5, 32.5, 30.5, 49.5, 41.6),
  lon = c(17.5, 13.5, 16.5, 21.5, 12.7)
)

pressurepath <- pressurepath_create(tag, path = path, quiet = TRUE)

plot_pressurepath(pressurepath)
plot_pressurepath(pressurepath, type = "histogram")
plot_pressurepath(pressurepath, type = "altitude")