PWFSLSmoke (version 1.2.100)

addShadedBackground: Add Shaded Background to a Plot

Description

Adds vertical lines to an existing plot using any variable that shares the same length as the time axis of the current plot. Line widths corresponds to magnitude of values.

Usage

addShadedBackground(param, timeAxis, breaks = stats::quantile(param,
  na.rm = TRUE), col = "blue", maxOpacity = 0.2, lwd = 1)

Arguments

param

vector of data to be represented

timeAxis

vector of times of the same length as param

breaks

set of breaks used to assign colors

col

color for vertical lines

maxOpacity

maximum opacity

lwd

line width