addShadedBackground: Add Shaded Background to a Plot

Description Usage Arguments

View source: R/addShadedBackground.R

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

1
2
3
4
5
6
7
8
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


PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.