line_sumrain {wasim} | R Documentation |
Add a line with cumulative rainfall data to a plot. The maximum value of the plot has to be passed. If the cumulative rainfall exceeds this maximum, it will start again at 0.
line_sumrain(xdata, cum_sum_rain, theMax, ...)
xdata |
Values ploted on the x axis, usually read with read.dates |
cum_sum_rain |
Vector with the cumulative rain |
theMax |
The maximum of the y-axis |
... |
additional arguments passed to lines |
Used for its side effect
Dominik Reusser
See also p.flow_comp
#Uniform rain plot(1:100, rep(1, 100),ylim=c(10,0),type="h", xlab="time", ylab="rainfall") line_sumrain(xdata=1:100, cum_sum_rain=(1:100), theMax=10)