Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow addl plot args #163

Merged
merged 4 commits into from
Jan 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions R/plotEGRET.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
#' flow, conc.units, site.id, and consti.name
#' @param preds.type character specifying if the predictions being used are
#' concentrations ("Conc") or fluxes ("Flux").
#' @param moreTitle additional text to include in the fluxBiasMulti plot
#' title. The EGRET default is "WRTDS", so this changes the default to "loadflex".
#' @param plotFlowNorm logical indicating whether or not to plot the normalized flow
#' lines. This defaults to FALSE, which overrides the EGRET default TRUE. Applicable
#' in plotFluxHist and plotConcHist.
#' @param ... additional arguments to pass to the plot
#'
#' @details EGRET plots that require \code{fitdat, meta}:
Expand Down Expand Up @@ -91,7 +96,8 @@
#' plotEGRET("multiPlotDataOverview", lamprey_nitrate, estdat, preds, meta)
#'
plotEGRET <- function(plot.name, fitdat = NULL, estdat = NULL, preds = NULL,
meta = NULL, preds.type = "Conc", ...) {
meta = NULL, preds.type = "Conc", moreTitle = "loadflex",
plotFlowNorm = FALSE, ...) {

req_missing <- switch(plot.name,

Expand Down Expand Up @@ -147,9 +153,9 @@ plotEGRET <- function(plot.name, fitdat = NULL, estdat = NULL, preds = NULL,
plotResidTime = plotResidTime(egretobj, ...),
boxResidMonth = boxResidMonth(egretobj, ...),
boxConcThree = boxConcThree(egretobj, ...),
plotConcHist = plotConcHist(egretobj, ...),
plotFluxHist = plotFluxHist(egretobj, ...),
fluxBiasMulti = fluxBiasMulti(egretobj, moreTitle = NULL, ...),
plotConcHist = plotConcHist(egretobj, plotFlowNorm = plotFlowNorm, ...),
plotFluxHist = plotFluxHist(egretobj, plotFlowNorm = plotFlowNorm, ...),
fluxBiasMulti = fluxBiasMulti(egretobj, moreTitle = moreTitle, ...),

# default if no name matches
stop(paste('unrecognized plot.name:', plot.name)))
Expand Down
17 changes: 17 additions & 0 deletions man/getPVal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion man/plotEGRET.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.