plotXYCurve.numeric {aroma.light}R Documentation

Plot the relationship between two variables as a smooth curve

Description

Plot the relationship between two variables as a smooth curve.

Usage

## 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)

Arguments

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.

Value

Returns (invisibly) the curve fit.

Missing values

Data points (x,y) with non-finite values are excluded.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

plotXYCurve.matrix().


[Package aroma.light version 1.10.0 Index]