plotXYCurve.numeric {aroma.light} | R Documentation |
Plot the relationship between two variables as a smooth curve.
## S3 method for class 'numeric': plotXYCurve(x, y, lwd=2, col=1, dlwd=1, dcol=NA, xlim=NULL, ylim=xlim, xlab=NULL, ylab=NULL, curveFit=smooth.spline, ..., add=FALSE)
x, y |
Two numeric vector of length N. |
lwd |
The width of the curve. |
col |
The color of the curve. |
dlwd |
The width of the density curves. |
dcol |
The fill color of the interior of the density curves. |
xlim, ylim |
The x and y plotting limits. |
xlab, ylab |
The x and y labels. |
curveFit |
The function used to fit the curve. The two first
arguments of the function must take x and y , and the
function must return a list with fitted elements x and
y . |
... |
Additional arguments passed to lines
used to draw the curve. |
add |
If TRUE , the graph is added to the current plot, otherwise
a new plot is created. |
Returns (invisibly) the curve fit.
Data points (x,y) with non-finite values are excluded.
Henrik Bengtsson (http://www.braju.com/R/)