hydroplot: When x is a zoo object it plots (a maximum of) 9 graphs (lines plot, boxplots and/or histograms) of the daily, monthly and/or annual time series.
sname2plot: When x is a data frame whose columns contain the time series of several gauging stations, it takes the name of one gauging station and plots the graphs described before.hydroplot(x, sname = "X", var.type = "", FUN, na.rm = TRUE,
var.unit = "mm", main, win.len1 = 365 * 1, win.len2 = 365 * 3,
ptype = "ts+boxplot+hist", pfreq = "dma",
tick.tstep= "months", lab.tstep= "years")sname2plot(x, sname, var.type = "", FUN, na.rm = TRUE,
var.unit = "mm", main, win.len1 = 365 * 1, win.len2 = 365 * 3,
ptype = "ts+boxplot+hist", pfreq = "dma",
tick.tstep= "months", lab.tstep= "years",
dates, date.fmt = "%Y-%m-%d")
xFUN is missing.
character representing the type of variable being plotted. Used for determining the function used for computing the monthly and annual values when FUN is missing. Valid values are:
-) Prevar.type is missing.
Function that have to be applied for transforming from daily to monthly or annual time step (e.g., For precipitation FUN=sum and for temperature and flow ts, FUN=mean)main= paste(var.type, "at", sname, sep=""),x is a data frame. It is a numeric, factor or Date object indicating how to obtain the dates corresponding to the sname station.
If dates is a number, it indicates the index of the column in format in format.Date.
ONLY required when class(dates)=="factor"<pfreq, daily, monthly and/or annual time series plots, boxplots and histograms are produced.
Depending on the value of ptype, time series plots, boxplots and/or histograms are produced.sname2ts## Loading daily streamflows at the station Oca en Ona (Ebro River basin, Spain) ##
data(OcaEnOnaQts)
hydroplot(OcaEnOnaQts, FUN=mean, var.unit = "m3/s")
#############
## Loading the monthly time series of precipitation within the Ebro River basin.
data(EbroPPtsMonthly)
## Plotting the monthly and annual values of precipitation at station "P9001",
## stored in 'EbroPPtsMonthly'.
sname2plot(EbroPPtsMonthly, sname="P9001", var.type="Precipitation", dates=1, pfreq="ma")Run the code above in your browser using DataLab