Creates a hydrograph with one or two streamflow data sets, and can include a precipitation hyetograph.
hydrograph(input = matrix(ncol = 2, nrow = 2), streamflow = input[, 2],
timeSeries = input[, 1], streamflow2 = NULL, precip = NULL, begin = 1,
endindex = length(streamflow), P.units = "", S.units = "",
S1.col = "black", S2.col = "red", stream.label = "Streamflow",
streamflow3 = NULL, streamflow4 = NULL, precip2 = NULL)
This is a data frame with at least two columns of data First column: Must be a time/date series Second column: If including precip, precip. Otherwise, streamflow - AND do not include any other columns Third column: (Only include if precip is in the second column) First streamflow dataset Forth column: (optional) Second streamflow dataset
vector of streamflow values - not necessary if using "input"
vector of time or date values - not necessary if using "input"
optional vector of streamflow values - not necessary if using "input"
vector of precipitation values - not necessary if using "input"
If you don't want to graph the whole data set, include the index where you would like to start
If you don't want to graph the whole dataset, include the index where you would like to end
Precipitation units (character)
Streamflow units (character). Users who have volumetric flow will have the superscript correctly formatted if they enter "m3s" or "ft3s"
color of the line representing streamflow
color of the line representing second streamflow data
character string - Label for vertical axis
optional vector of additional streamflow values
optional vector of additional streamflow values
optional vector of a second precip gage data if you are interested in comparing precip inputs
The date series should be continuous and evenly spaced. If not, the dates will not line up accurately on the x-axis.
# NOT RUN {
data(OwascoInlet)
head(OwascoInlet)
hydrograph(OwascoInlet)
# }
Run the code above in your browser using DataLab