plotbandsonly {hydroGOF} | R Documentation |
Adds uncertainty bounds to an existing plot.
Description
Adds a polygon representing uncertainty bounds to an existing plot.
Usage
plotbandsonly(lband, uband, dates, date.fmt="%Y-%m-%d",
bands.col="lightblue", border= NA, ...)
Arguments
lband |
zoo or xts object with the values of the lower band. |
uband |
zoo or xts object with the values of the upper band. |
dates |
OPTIONAL. Date, factor, or character object indicating the dates that will be assigned to |
date.fmt |
OPTIONAL. Character indicating the format of |
bands.col |
See |
border |
See |
... |
further arguments passed to the |
Note
It requires the hydroTSM package
Author(s)
Mauricio Zambrano Bigiarini <mzb.devel@gmail.com>
See Also
Examples
# Loading daily streamflows of the Ega River (Spain), from 1961 to 1970
data(EgaEnEstellaQts)
obs <- EgaEnEstellaQts
# Selecting only the daily values belonging to the year 1961
obs <- window(obs, end=as.Date("1961-12-31"))
# Generating the lower and upper uncertainty bounds
lband <- obs - 5
uband <- obs + 5
## Not run:
plot(obs, type="n")
plotbandsonly(lband, uband)
points(obs, col="blue", cex=0.6, type="o")
## End(Not run)