vpr_plot_contour: Interpolated contour plot of particular variable

View source: R/EC_functions.R

vpr_plot_contourR Documentation

Interpolated contour plot of particular variable

Description

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

Usage

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(s)

E. Chisholm & Kevin Sorochan


vprr documentation built on July 12, 2022, 5:07 p.m.