This function produces plots of CALCOFI-originated time series data.
calcofi_plot(
csv,
x_fld = "year",
y_fld = "avg_larvae_count_per_volume_sampled",
y_trans = "log(y + 1)",
x_lab = "Year",
y_lab = "ln(mean abundance + 1)",
title = NULL,
yrs_recent = 5,
interactive = T,
in_loop = F
)
The CALCOFI time series data, in csv format, to be plotted.
The column of the time series data to be used for the x-axis of the plot.
The column of the time series data to be used for the y-axis of the plot.
The transformation to be performed on the data used for the y-axis.
The label for the x-axis on the plot.
The label for the y-axis on the plot.
The label for the title of the plot.
The number of most recent years to be shaded in the plot.
A Boolean variable indicating whether the plot is to be interactive or not.
A Boolean variable indicating whether an error condition exists.
The output is a plot of time series data.
if (FALSE) {
calcofi_plot(csv = "https://raw.githubusercontent.com/marinebon/calcofi-analysis/master/data/Anchovy_CINMS.csv", title = "Anchovy - CINMS Region")
}