shinyMap2: shinyMap2

Description Usage Arguments Value

View source: R/shinyMap2.R

Description

Modular Shiny app that allows the user to interactively generate Stream, Catchment, and Site Attribute maps, as well as execute Source Change Scenarios Uses libraries shiny, sp, data.table, maptools, rgdal, shinyWidgets, stringr, and rhandsontable Uses subroutines: setup routines : createInteractiveChoices, createInteractiveScenarioChoices, createRTables, UIs : streamCatch, shinySiteAttr, shinyScenarios MODS : compileALL, selectAll, updateVariable, shinyScenariosMod, goShinyPlot

Executed By:


Executes Routines:


Usage

1
2
3
4
5
shinyMap2(file.output.list, map_uncertainties, BootUncertainties,
  data_names, mapping.input.list, subdata, SelParmValues, sitedata,
  estimate.list, ConcFactor, DataMatrix.list, dlvdsgn,
  reach_decay_specification, reservoir_decay_specification,
  scenario.input.list, add_vars, batch_mode, RSPARROW_errorOption)

Arguments

map_uncertainties

Vector of user selected uncertainty parameters to map, if uncertainty analysis was not run NA

BootUncertainties

Uncertainty values if available, if uncertainty analysis was not run NA

data_names

data.frame of variable metadata from data_Dictionary.csv file

subdata

data.frame input data (subdata)

SelParmValues

selected parameters from parameters.csv using condition ifelse((parmMax > 0 | (parmType=="DELIVF" & parmMax>=0)) & (parmMin<parmMax) & ((parmType=="SOURCE" & parmMin>=0) | parmType!="SOURCE")

sitedata

Sites selected for calibration using subdata[(subdata$depvar > 0), ]

ConcFactor

the concentration conversion factor, computed as Concentration = load / discharge * ConcFactor

dlvdsgn

design matrix imported from design_matrix.csv

reach_decay_specification

the SAS IML reach decay function code from sparrow_control

reservoir_decay_specification

the SAS IML reservoir decay function code from sparrow_control

add_vars

additional variables specified by the setting add_vars to be included in prediction, yield, and residuals csv and shape files

batch_mode

yes/no character string indicating whether RSPARROW is being run in batch mode

RSPARROW_errorOption

Value

outshinyInput the Shiny Input list with hottables as dataframes and cosmetic mapping settings as list objects


tbep-tech/tbepRSparrow documentation built on Oct. 9, 2020, 6:24 a.m.