eventsExplorer: A graphical user interface for defining discrete events in...

Description Usage Arguments Author(s) See Also Examples

View source: R/eventsExplorer.R

Description

A graphical user interface for defining discrete events in time series. The interface is based on playwith() from the playwith package, which depends on GTK+ being installed on your system.

Usage

1
2
3
eventsExplorer(Q, P = NULL,
               ..., type = list(P = "s", "l"), xlab = NULL,
               xscale.components = xscale.components.subticks)

Arguments

Q, P

zoo objects, single time series.

..., type, xlab, xscale.components

further arguments passed to xyplot.ts.

Author(s)

Felix Andrews felix@nfrac.org

See Also

eventseq, playwith, xyplot.ts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
if (interactive() && require("playwith")) {

data(Queanbeyan)
## wet period
ts74 <- window(Queanbeyan, start = "1974-01-01", end = "1976-12-01")
## dry period
ts93 <- window(Queanbeyan, start = "1993-01-01", end = "1996-01-01")

## To zoom in to a time period: hold Shift and drag horizontally.

eventsExplorer(Q = ts74$Q, P = ts74$P)

#eventsExplorer(ts93$Q)

}
## End(Not run)

josephguillaume/eventsExplorer documentation built on June 29, 2020, 12:54 a.m.