[ top | up ]

X-Y Plotting

Usage

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
    item"p" for points, item"l" for lines, item"b" for both, "o" for both "overplotted", item"h" for "histogram" like vertical lines, item"s" for steps, item"S" for other steps, and item"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

Generic function for plotting of R objects. For more details about the graphical parameter arguments, see par.

A longer description will go here eventually.

See Also

plot.default, points, lines, par.

Examples

plot(cars)
lines(lowess(cars))