The R Project SVN R

Rev

Rev 2 | Blame | Last modification | View Log | Download | RSS feed

\name{plot}
\title{X-Y Plotting}
\usage{
plot(x, y, xlim=range(x), ylim=range(y), type="p",
        main, xlab, ylab, \dots)
}
\alias{plot}
\arguments{
\item{x,y}{the coordinates of points in the plot.
Alternatively, a single plotting structure can
be provided.}
\item{xlim,ylim}{the ranges to be encompased by the x and y axes.}
\item{type}{what type of plot should be drawn.
Possible types are 
\code{"p"} for \bold{p}oints,
\code{"l"} for \bold{l}ines,
\code{"b"} for \bold{b}oth, \code{"o"} for both "\bold{o}verplotted",
\code{"h"} for "\bold{h}istogram" like vertical lines,
\code{"s"} for \bold{s}teps,
\code{"S"} for other \bold{s}teps,
 and
\code{"n"} for no plotting.}
\item{main}{an overall title for the plot.}
\item{xlab}{a title for the x axis.}
\item{ylab}{a title for the y axis.}
\item{\dots}{graphical parameters can be given as arguments to \code{plot}.}
}
\description{
Generic function for plotting of \R objects.
For more details about the graphical parameter arguments, see \code{\link{par}}.

A longer description will go here eventually.
}
\seealso{
\code{\link{plot.default}}, \code{\link{points}}, \code{\link{lines}}, \code{\link{par}}.
}   
\examples{
plot(cars)
lines(lowess(cars))
}