TkApprox(x, y, type = "b", snap.to.x = FALSE, digits = 4, cols = c("red", "#009900", "blue"), xlab = deparse(substitute(x)), ylab = deparse(substitute(y)), hscale = 1.5, vscale = 1.5, wait = TRUE, ...)
plot
format
)tkrplot
tkrplot
plot
wait
is FALSE then an invisible NULL is returned, if
wait
is TRUE then an invisible list with the x and y values of
the 3 reference lines is returned.approxfun
is used to
make the predictions.
The x-value of the 3 reference lines can be changed by clicking and
dragging the line to a new position. The x and y values are shown in
the margins of the graph. Below the graph is a table with the
differences (absolute value) between the pairs of points.
This can be used to find peaks/valleys in trends and to see how they
differ from starting points, other peaks/valleys, etc..approxfun
, TkSpline
if(interactive()) {
with(ccc, TkApprox(Time2,Elevation))
}
Run the code above in your browser using DataLab