event.xyplot {hydromad}  R Documentation 
Scatterplots with variables aggregated in event windows.
event.xyplot(x, ...) ## S3 method for class 'formula' event.xyplot(x, data = list(), events, ..., response = NULL, eFUN = sum, as.table = TRUE, layout = NULL, auto.key = NCOL(response) > 1, xlab = "eventaggregated covariate values", ylab = "eventaggregated response")
x 
an object for the generic method; in the 
data 
data source giving variables used in the formula. Typically a

events 
event sequence produced by 
... 
further arguments passed to 
response 
a response vector or matrix corresponding to the variables in the formula. If this is given, any response in the formula is ignored. 
eFUN 
a function to aggregate 
as.table, layout, auto.key, xlab, ylab 
passed to 
this function returns a trellis object which can be plot
ted.
Felix Andrews felix@nfrac.org
xyplot.list
,
xyplot
,
panel.xyplot
,
eventapply
data(Canning) ev < eventseq(Canning$P, thresh = 20, inthresh = 1, indur = 3, continue = FALSE) event.xyplot(e(Q,sum) / e(P,sum) ~ e(P,sum) + e(P,max) + e(lag(Q,1),first), data = Canning, events = ev, scales = list(y = list(log = TRUE)), yscale.components = yscale.components.fractions, ylab = "event runoff ratio (Q/P)", layout = c(3,1), xlab = c("total rain (mm)", "max rain (mm/day)", "antecedent flow (mm/day)")) ## multiple response variables event.xyplot(cbind(e(Q,quantile,0.9),e(Q,quantile,0.99)) ~ e(P,max) + e(P,mean) + e(P,sum), data = Canning, events = ev, scales = list(y = list(log = TRUE)), yscale.components = yscale.components.log10.3)