CSIstack: Create stacked CSI interval plots for sites

Description Usage Arguments Examples

Description

For each site (layer) in the csi object, plot the intervals (columns) on a stacked plot.

Usage

1
2
CSIstack(csi, dir = paste0(getwd(), "/csi_stacked"), thumbs = F,
  groupedx = T, groupedy = T, leg = "topleft")

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. Default "csi_stacked" in working directory.

thumbs

logical. If true, thumbnail plots will be generated in addition to full-sized plots. Default false.

groupedx

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

groupedy

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

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.

Examples

1
2
3
4
5
# 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)
CSIstack(csi)

USGS-EDEN/CSI documentation built on Oct. 11, 2019, 11:57 p.m.