Adds uncertainty bounds to an existing plot.
Adds a polygon representing uncertainty bounds to an existing plot.
plotbandsonly(lband, uband, dates, date.fmt="%Y-%m-%d", bands.col="lightblue", border= NA, ...)
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 codepolygon function for plotting the bands, or from other methods |
It requires the hydroTSM package
Mauricio Zambrano Bigiarini <mzb.devel@gmail.com>
# 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.