panel.dierckx {DierckxSpline}R Documentation

Panel function for xyplot.dierckx

Description

This is the default panel function for 'xyplot.dierckx'.

Usage

panel.dierckx(x, y, newx, newy, knots = NULL, knots.y = NULL, lty = 2,
              knot.cex = 1.5, knot.col = "red", knot.fill = "lightgray",
              ...)

Arguments

x, y points to be plotted
newx, newy line to be drawn
knots a vector of x-axis position to mark as interior 'knots' of the spline.
knots.y a vector of y-axis positions corresponding to 'knots'.
lty line type for 'panel.xyplot'.
knot.cex character expansion for plotted knots.
knot.col color to use when plotting the knots
knot.fill 'fill' argument passed to 'lpoints' when plotting the knots; see \line{lpoints}.
... other graphics parameters passed to \line{lpoints} and \line{panel.xyplot}.

Details

Creates a scatterplot of 'x' and 'y' with a line plot of 'newx' and 'newy', optionally marking the knots at 'knots' and 'knots.y'.

Author(s)

Sundar Dorai-Raj and Spencer Graves

References

Dierckx, P. (1993) Curve and Surface Fitting with Splines, Oxford Science Publications.

See Also

concon, spline, smooth.spline


[Package DierckxSpline version 1.1-2 Index]