line_sumrain: Draw line of cumulative rainfall

Description Usage Arguments Value Author(s) See Also Examples

View source: R/line_sumrain.R

Description

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.

Usage

1
line_sumrain(xdata, cum_sum_rain, theMax, ...)

Arguments

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

Value

Used for its side effect

Author(s)

Dominik Reusser

See Also

See also p.flow_comp

Examples

1
2
3
  #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)

wasim documentation built on May 1, 2019, 6:50 p.m.