The Default Scatterplot Function

Usage

plot.default(x, y=NULL, type = "p", col = par("fg"), bg = NA,
             pch = par("pch"), xlim = NULL, ylim = NULL, log = "",
             axes = TRUE, frame.plot = axes, panel.first = NULL,
             panel.last = NULL, ann = par("ann"), main = NULL,
             xlab = NULL, ylab = NULL, cex = par("cex"),
             lty = par("lty"), lwd = par("lwd"), ...)

Value

This function is invoked for its side effect of drawing a scatter plot in the active graphics window.

References

Cleveland, W. S. (1985). The Elements of Graphing Data. Monterey, CA: Wadsworth.

See Also

plot, plot.window, xy.coords.

Examples

data(cars)
Speed <- cars$speed
Distance <- cars$dist
plot(Speed, Distance, panel.first = grid(8,8),
     pch = 0, cex = 1.2, col = "blue")
plot(Speed, Distance,
     panel.first = lines(lowess(Speed, Distance), lty = "dashed"),
     pch = 0, cex = 1.2, col = "blue")


[Package Contents]