flexPlotAddOn: Flexible Flow Normalization Plot Add On

Description Usage Arguments Examples

View source: R/flexFN.R

Description

Flexible Flow Normalization Plot Add On

Usage

1
flexPlotAddOn(eList, showArrows = TRUE, showRect = TRUE, customPalette = NULL)

Arguments

eList

named list with at least the Daily, Sample, and INFO dataframes

showArrows

logical whether or not to show arrows representing flow segments

showRect

logical whether or not to show rectangles representing sample segments

customPalette

character vector of colors as a hexadecimal string of the form "#rrggbb". Defaults to NULL, which indicates the use of a default palette (up to 21 segments).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
eList <- Choptank_eList
eList <- setUpEstimation(eList)
flowNormStart <- c("1979-10-01","1990-01-01","1992-10-10")
flowNormEnd <- c("1995-06-06","2004-03-03","2011-09-29")
flowStart <- c("1979-10-01","1995-06-07","2004-03-04")
flowEnd <- c("1995-06-06","2004-03-03","2011-09-29") 
dateInfo <- data.frame(flowNormStart,
                       flowNormEnd,
                       flowStart, 
                       flowEnd, 
                       stringsAsFactors = FALSE)

newEList <- flexFN(eList, dateInfo)
plotFluxHist(newEList)
flexPlotAddOn(newEList)

plotFluxHist(newEList)
flexPlotAddOn(newEList, customPalette=c("#d5ce48", "#fd300f", "#3e0289"))

EGRET documentation built on Jan. 25, 2022, 5:08 p.m.