panel.dierckx {DierckxSpline} | R Documentation |
This is the default panel function for 'xyplot.dierckx'.
panel.dierckx(x, y, newx, newy, knots = NULL, knots.y = NULL, lty = 2, knot.cex = 1.5, knot.col = "red", knot.fill = "lightgray", ...)
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} .
|
Creates a scatterplot of 'x' and 'y' with a line plot of 'newx' and 'newy', optionally marking the knots at 'knots' and 'knots.y'.
Sundar Dorai-Raj and Spencer Graves
Dierckx, P. (1993) Curve and Surface Fitting with Splines, Oxford Science Publications.