plot_ereefs_profile: Plots a single vertical profile using output from...

View source: R/vertical_profiles.R

plot_ereefs_profileR Documentation

Plots a single vertical profile using output from get_ereefs_profile()

Description

Relies on output from get_ereefs_profile().

Usage

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

## Not run: 
plot_ereefs_profile(get_ereefs_profile('TN'))

## End(Not run)

BarbaraRobson/ereefs documentation built on April 23, 2023, 5:47 a.m.