Relies on output from get_ereefs_profile().

plot_ereefs_profile(
  profileObj,
  var_name = "Chl_a_sum",
  target_date = c(2016, 1, 1),
  p = NA,
  colour = "blue"
)

Arguments

profileObj

A list object as output by get_ereefs_profiles(), containing dates, eta, z_grid, botz and profiles

var_name

The name of the variable to plot (must be a colname in profile$profiles). Default 'Chl_a_sum'. If profileObj contains only one variable, var_name is ignored and the content of the profile is shown.

target_date

The target date (plot the profile closest in time to this).

p

The handle of an existing figure, if you don't want to create a new figure

Value

the handle of a figure containing the vertical profile plot

Examples

if (FALSE) {
plot_ereefs_profile(get_ereefs_profile('TN'))
}