plot.deficit: Plot time series of deficits

Description Usage Arguments See Also Examples

Description

Plot method for objects of class deficit.

Usage

1
2
## S3 method for class 'deficit'
plot(x, type = "dygraph", ...)

Arguments

x

object of class deficit

type

if type = "dygraph" interactive time series plotting is done using the dygraphs JavaScript library. Otherwise plot.xts is called.

...

further arguments, passed on to the subsequent plot function, e.g. step = FALSE.

See Also

dygraph

Examples

1
2
3
4
5
data(ray)
r <- find_droughts(ray, threshold = 0.02)
plot(r["1970::1970", ])

plot(r["1970::1970", ], step = FALSE)

Example output

Loading required package: xts
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: lmom
Loading required package: lattice
Warning message:
8.6% of the discharges (1172 observations) are NA values. NAs always terminate a drought event. 

lfstat documentation built on May 2, 2019, 6:07 p.m.