Learn R Programming

rmngb (version 0.6-1)

plotScatter: Scatterplot with LOWESS Line

Description

Plots a standard scatterplot and overlays a locally-weighted polynomial regression line.

Usage

plotScatter(x, y, lty = 1, lwd = 2, colLine = "red", ...)

Arguments

x
the x coordinates of points in the plot.
y
the y coordinates of points in the plot.
lty
line type.
lwd
line width.
colLine
line colour.
...
additional arguments passed to plot.

Value

Nothing of interest.

See Also

plot, lowess.

Examples

Run this code
plotScatter(rnorm(50), rnorm(50))

Run the code above in your browser using DataLab