CSIplot: Create individual CSI interval plots for sites

CSIplotR Documentation

Create individual CSI interval plots for sites

Description

For each site (layer) in the csi object, plot each interval (column).

Usage

CSIplot(
  csi,
  dir = paste0(getwd(), "/csi_plots"),
  leg = "topleft",
  groupedx = T
)

Arguments

csi

array A 3D array of CSI values with dimensions of number of months covered, scale of months analysed (typically 1-24), and number of sites.

dir

character Directory to write output files to.

leg

character If "topleft" (default), legend will be displayed in upper left corner; if "bottom", legend will be placed horizontally along the figure bottom. Else no legend will be displayed.

groupedx

logical. If true (default), x-asix will be the same across all output plots.

Examples

# Data file with Year and Month columns
data_path <- system.file("extdata", "Monthly_Coastal_EDEN.csv", package = "CSI")
sal <- CSIimport_monthly(data_path)
csi <- CSIcalc(sal)
CSIplot(csi)


bmccloskey/CSI documentation built on April 23, 2023, 12:53 p.m.