[ top | up ]

X-Y Plotting

Syntax

plot(x, y, xlim=range(x), ylim=range(y), type="p",
        main, xlab, ylab, ...)

Arguments

x,y the coordinates of points in the plot. Alternatively, a single plotting structure can be provided.
xlim,ylim the ranges to be encompased by the x and y axes.
type what type of plot should be drawn. Possible types are "p" for points, "l" for lines, "b" for both, and "n" for no plotting.
main an overall title for the plot.
xlab a title for the x axis.
ylab a title for the y axis.
... graphical parameters can be given as arguments to plot.

Description

A longer description will go here eventually.

Examples

plot(cars) lines(lowess(cars))