Learn R Programming

⚠️There's a newer version (3.0.9) of this package.Take me there.

EGRET (version 2.3.0)

Exploration and Graphics for RivEr Trends (EGRET)

Description

Statistics and graphics for streamflow history, water quality trends, and the statistical modeling algorithm: Weighted Regressions on Time, Discharge, and Season (WRTDS).

Copy Link

Version

Install

install.packages('EGRET')

Monthly Downloads

815

Version

2.3.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Laura DeCicco

Last Published

July 7th, 2015

Functions in EGRET (2.3.0)

fluxUnit-class

fluxUnit class
plotConcQ

Plot of Observed Concentration versus Discharge
logPretty1

Sets up tick marks for an axis with a log scale, where the graph is small
blankTime

Deletes the computed values during periods of time when there is no sample data
fluxBiasStat

Compute the flux bias statistic: (mean of estimated flux - mean of observed flux) / mean of observed flux
plotFluxHist

Graph of annual flux and flow normalized flux versus year
modelEstimation

Estimation process for the WRTDS (Weighted Regressions on Time, Discharge, and Season)
Choptank_eList

Example eList
qUnit-class

qUnit class
readUserDaily

Import user daily data for EGRET analysis
plot15

Makes 15 graphs of streamflow statistics on a single page
plotConcTimeSmooth

Plot up to three curves representing the concentration versus time relationship, each curve representing a different flow.
populateDaily

Populate Daily data frame
surfaceIndex

Compute the 6 parameters needed to lay out the grid for the surfaces computed in estSurfaces
selectDays

Creates a subset data frame that only contains data for the specified period of analysis
as.egret

Create named list for EGRET analysis
formatCheckDate

formatCheckDate
censoredSegments

Generic plotting function to create censored line segments
getInfo

Get INFO dataframe from EGRET object
makeAnnualSeries

Produces annual series of 8 streamflow statistics (and a lowess smooth of them) from daily streamflow data
generalAxis

Axis generation for log discharge
estCrossVal

Jack-Knife cross validation of the WRTDS (Weighted Regressions on Time, Discharge, and Season)
plotFluxPred

Graph of observed versus estimated flux
calculateMonthlyResults

Calculates monthly values of Q, Conc, Flux, FNConc, and FNFlux for the entire record
formatCheckParameterCd

formatCheckParameterCd
plotConcTimeDaily

Plot of the time series of daily concentration estimates and the sample values for the days that were sampled
logPretty3

Sets up tick marks for an axis with a log scale
multiPlotDataOverview

Produces a 4 panel plot that gives an overview of the data set prior to any processing
EGRET-package

EGRET package includes WRTDS and flowHistory
plotConcQSmooth

Plot up to three curves representing the concentration versus discharge relationship. Each curve is a different point in time.
plotFour

Makes four graphs of streamflow statistics on a single page
populateDateColumns

Populate Date Columns
boxConcMonth

Box plot of the water quality data by month
flexFN

Flexible Flow Normalization
INFOdataframe

Import metadata to create INFO data frame
dateFormatCheck

Check date format
Constants

Constants included with EGRET
printSeries

Print annual results for a given streamflow statistic
fixSampleFrame

Update Sample dataframe
plotContours

Color contour plot of the estimated surfaces as a function of discharge and time (surfaces include log concentration, standard error, and concentration)
printqUnitCheatSheet

Available Flow Unit properties
populateSiteINFO

Populate Site Information Columns
removeDuplicates

Remove Duplicates
tableChangeSingle

Create a table of the changes in flow-normalized concentration or flux values between various points in time in the record
plotFlowSingle

Creates a plot of a time series of a particular flow statistic and a lowess smooth of that flow statistic
populateSampleColumns

Populate Sample Columns
plotResidQ

Plot of the residuals from WRTDS (in log concentration units) versus the discharge
setupYears

Creates the AnnualResults data frame from the Daily data frame
print.egret

Prints EGRET object
readNWISSample

Import NWIS Sample Data for EGRET analysis
boxConcThree

Three box plots side-by-side
plotDiffContours

Plots the difference between two years from a contour plot created by plotContours
setUpEstimation

setUpEstimation
compressData

Compress sample data frame
estDailyFromSurfaces

Estimates all daily values of Concentration, Flux, Flow-Normalized Concentration, and Flow Normalized Flux
checkStartEndDate

checkStartEndDate
plotConcHist

Graph of annual concentration and flow normalized concentration versus year
estSurfaces

Estimate the three surfaces (for yHat, SE and ConcHat) as a function of DecYear and logQ and store in the three-dimensional object called surfaces
boxResidMonth

A box plot of WRTDS residuals by month
tableFlowChange

Prints table of change metrics for a given streamflow statistic
fluxBiasMulti

Produces 8-panel plot that is useful for determining if there is a flux bias problem
plotFluxTimeDaily

Plot of the time series of daily flux estimates and the sample values for the days that were sampled
populateConcentrations

Populate Concentration Columns
dataOverview

Data Overview for WRTDS
setSeasonLabel

Create a character character that describes the period of analysis, when period of analysis has already been set in AnnualResults
plotResidPred

Plot of the residuals from WRTDS versus the estimated values (all in log concentration units)
tableResults

Table of annual results for discharge, concentration and flux
processQWData

Processing of USGS NWIS Water Quality Data
saveResults

A utility program for saving the contents of the workspace
boxQTwice

Two box plots side-by-side, discharge on sample days, and discharge on all days
tableChange

Create a table of the changes in flow-normalized values between various points in time in the record
readNWISDaily

Import NWIS Daily Data for EGRET analysis
getSample

Get Sample dataframe from EGRET object
plotResidTime

Plot of the residuals from WRTDS (in log concentration units) versus time
readWQPSample

Import Sample Data for WRTDS
mergeReport

Merge Sample and Daily Data into EGRET object
plotFourStats

Makes four graphs of annual streamflow statistics on a single page
yPretty

Sets up tick marks for an axis for a graph with an arithmetic scale which starts at zero
getSurfaces

Get surfaces matrix from EGRET object
populateParameterINFO

Populate Parameter Information Columns
plotQTimeDaily

Plot of the discharge time series
is.egret

Check for EGRET object
printFluxUnitCheatSheet

Available Flux Unit properties
runSurvReg

Run the weighted survival regression for a set of estimation points (defined by DecYear and Log(Q))
plotFluxQ

Sample data plot: observed log flux vs log discharge
estFNsegs

Segment estimates
readDataFromFile

Basic Data Import for Water Flow Data
getDaily

Get Daily dataframe from EGRET object
plot1of15

plots 1 of the 15 graphs of streamflow statistics on a single page
setSeasonLabelByUser

Creates a character character that describes the period of analysis, when the period of analysis is being set by the user and not from AnnualResults
plotSDLogQ

Graph of the standard deviation of the log of daily discharge versus year
flowDuration

Computes several values of the flow duration curve for streamflow centered on a specific date of the year
genericEGRETDotPlot

Generic EGRET plotting function
plotConcPred

Plot of Observed Concentration versus Estimated Concentration
monthLabel-class

monthLabel class
plotConcTime

Plot of Observed Concentration versus Time
readUserSample

Import user sample data for EGRET analysis
setPA

Sets up the period of analysis
triCube

Tricube weight function