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.

Examples

# Load the pressurepath of the most likely path computed with `geopressuretemplate()`
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
  pressurepath <- load_interim("18LX", var = "pressurepath_most_likely")
})

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