turnpoints(x)
## S3 method for class 'turnpoints':
print(x, \dots)
## S3 method for class 'turnpoints':
summary(object, \dots)
## S3 method for class 'summary.turnpoints':
print(x, \dots)
## S3 method for class 'turnpoints':
plot(x, level=0.05, lhorz=TRUE, lcol=2, llty=2, type="l",
xlab="data number", ylab=paste("I (bits), level = ", level * 100, "%", sep = ""),
main=paste("Information (turning points) for:", x$data), ...)
## S3 method for class 'turnpoints':
lines(x, max=TRUE, min=TRUE, median=TRUE,
col=c(4, 4, 2), lty=c(2, 2, 1), ...)
## S3 method for class 'turnpoints':
extract(e, n, no.tp=0, peak=1, pit=-1, \dots)
turnpoints()
, a 'turnpoints' object for the methodsturnpoints()
turnpoints()
lhorz=TRUE
. By default, level=0.05
, which corresponds to a 5% p-value for the testlhorz=TRUE
(by default), an horizontal line indicating significant level is drawn on the graphcol=c(4,4,2)
lty=c(2,2,1)
, that is: dashed, dashed and plain linesn=length(turnp)
, all points are extractedno.tp
represents the code to use for points that are not an extremum, by default '0'print()
, summary()
, plot()
, lines()
and extract()
.
Regarding your specific question, 'info' is the quantity of information I associated with the turning points:TRUE
), or not (FALSE
)lines()
method should be used to draw lines on the graph of the original dataset (plot(data, type="l")
for instance), not on the graph of turning points (plot(turnp)
)!turnogram
, stat.slide
data(marbio)
plot(marbio[, "Nauplii"], type="l")
# Calculate turning points for this series
Nauplii.tp <- turnpoints(marbio[, "Nauplii"])
summary(Nauplii.tp)
plot(Nauplii.tp)
# Add envelope and median line to original data
plot(marbio[, "Nauplii"], type="l")
lines(Nauplii.tp)
# Note that lines() applies to the graph of original dataset!!!
title("Raw data, envelope maxi., mini. and median line")
Run the code above in your browser using DataLab