Creates interpolated contour plot, can be used as a background for ROI or tow yo information

vpr_plot_contour(
  data,
  var,
  dup = "mean",
  method = "interp",
  labels = TRUE,
  bw = 1,
  cmo
)

Arguments

data

data frame needs to include time_hr, depth, and variable of choice (var)

var

variable in dataframe which will be interpolated and plotted

dup

if method == 'interp'. Method of handling duplicates in interpolation, passed to interp function (options: 'mean', 'strip', 'error')

method

Specifies interpolation method, options are 'interp' or 'oce', oce uses slightly different method (oce is least error prone)

labels

logical value indicating whether or not to plot contour labels

bw

bin width defining interval at which contours are labelled

cmo

name of a cmocean plotting theme, see ?cmocean for more information

Author

E. Chisholm & Kevin Sorochan