Skip to contents

Plot a directional wave energy spectrum at a given time.

The misspelled plot_2d_specta() spelling is a deprecated alias for this function.

Usage

plot_2d_spectra(
  spec,
  time = 1L,
  normalize = TRUE,
  trim = 0.01,
  cut_off = 0.4,
  ...
)

Arguments

spec

the spectral data, as an output from get_2d_spectrum

time

the time to plot. Either an integer or the date.

normalize

Should the spectrum be normalized to have maximum 1 before plotting

trim

removes the values of the spectral density lower than this value

cut_off

cut-off frequency above which the spectrum is not plotted

...

currently unused

Value

a ggplot object

Examples

plot_2d_spectra(resourcecodedata::rscd_2d_spectra, 1)