Usage
turnogram(series, intervals=c(1, length(series)/5), step=1, complete=FALSE,
two.tailed=TRUE, FUN=mean, plotit=TRUE, level=0.05, lhorz=TRUE,
lvert=FALSE, xlog=TRUE)
## S3 method for class 'turnogram':
summary(turno)
## S3 method for class 'turnogram':
plot(turno, level=0.05, lhorz=TRUE, lvert=TRUE, lcol=2,
llty=2, xlog=TRUE, \dots)
## S3 method for class 'turnogram':
identify(turno, lvert=TRUE, \dots)
## S3 method for class 'turnogram':
extract(turno, n, level=turno$level, FUN=turno$fun, drop=0)Arguments
series
a single regular time series ('rts' object in Splus or 'ts' object in R)
intervals
the range (mini, maxi) of the intervals to calculate, i.e., to take one obervation every 'interval' one. By default, intervals ranges from 1 to the fifth of the total number of observations
step
the increment used for the intervals. By defaults step=1. To limit calculation or for a first screenning with a large range in the intervals, use a higher value for step
complete
if complete=TRUE, a complete turnogram is calculated, showing mean, minimal and maximal curves. If it is FALSE (by default), only a simple turnogram always starting from the first observation is calculated
two.tailed
if two.tailed=TRUE (by default), the monotony index is tested with a bilateral test, otherwise, a left-sided test is used
FUN
a function to apply to aggregate data in the intervals. It is a function of the type FUN(x, na.rm, ...). The most used function is mean() (by default), but it is also possible to keep only the first value with first()
plotit
if plotit=TRUE (by default), the graph of the turnogram is also plotted
level
the significant level to draw on the graph. By default level=0.05, corresponding to a test with P = 5%
lhorz
if lhorz=TRUE (by default) then one (left-sided test), or two (two-sided test) horizontal lines are drawn on the graph, indicating the significant level of the test given by the argument level. Any point above the single line, or
lvert
if lvert=TRUE (by default, except for turnogram() function), a vertical line is drawn, indicating the time interval that corresponds to the maximum information and it is also the automatic level of extraction unless this value is
lcol
the color to use to draw supplemental lines: the horizontal line indicating where the test is significant (if lhorz=TRUE) and the vertical line indicating the extraction level (if lvert=TRUE). By default, color 2 is used
llty
the style for the supplemental lines. By default, style 2 is used (dashed lines)
xlog
if xlog=TRUE (by default), then the x-axis is expressed in logarithms. Otherwise, a linear scale is used
...
additional optional graphic arguments
turno
a 'turnogram' object as returned by the function turnogram()
n
the number of observations to take into account in the initial series. Use n=NULL (by default) to use all observations of the series
drop
the number of observations to drop at the beginning of the series before proceeding with the aggregation of the data for the extracted series. By default, drop=0: no observations are dropped
synopsis
turnogram(series, intervals=c(1, length(series)/5), step=1, complete=FALSE, two.tailed=TRUE, FUN=mean, plotit=TRUE, level=0.05, lhorz=TRUE, lvert=FALSE, xlog=TRUE)
extract.turnogram(e, n, level=e$level, FUN=e$fun, drop=0, ...)
identify.turnogram(x, lvert=TRUE, col=2, lty=2, ...)
plot.turnogram(x, level=0.05, lhorz=TRUE, lvert=TRUE, lcol=2, llty=2, xlog=TRUE, xlab=paste("interval (", x$units.text, ")", sep=""), ylab="I (bits)", main=paste(x$type, "turnogram for:", x$data), sub=paste(x$fun, "/", x$proba), ...)
print.summary.turnogram(x, ...)
print.turnogram(x, ...)
summary.turnogram(object, ...)