The R Project SVN R

Rev

Rev 14591 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14591 Rev 14688
Line 5... Line 5...
5
\title{Formula Notation for Scatterplots}
5
\title{Formula Notation for Scatterplots}
6
\description{
6
\description{
7
  Specify a scatterplot or add points or lines via a formula.
7
  Specify a scatterplot or add points or lines via a formula.
8
}
8
}
9
\usage{
9
\usage{
10
\method{plot}{formula}(formula, \dots, data = parent.frame(), subset,
10
\method{plot}{formula}(formula, data = parent.frame(), \dots, subset,
11
             ylab = varnames[response], ask = TRUE)
11
             ylab = varnames[response], ask = TRUE)
12
\method{points}{formula}(formula, \dots, data = parent.frame(), subset)
12
\method{points}{formula}(formula, data = parent.frame(), \dots, subset)
13
\method{lines}{formula}(formula, \dots, data = parent.frame(), subset)
13
\method{lines}{formula}(formula, data = parent.frame(), \dots, subset)
14
}
14
}
15
\arguments{
15
\arguments{
16
  \item{formula}{a \code{\link{formula}}, such as \code{y ~ x}.}
16
  \item{formula}{a \code{\link{formula}}, such as \code{y ~ x}.}
17
  \item{data}{a data.frame (or list) from which the variables in
17
  \item{data}{a data.frame (or list) from which the variables in
18
    \code{formula} should be taken.}
18
    \code{formula} should be taken.}
-
 
19
  \item{\dots}{Further graphical parameters may also be passed as
-
 
20
    arguments, see \code{\link{par}}.}
19
  \item{subset}{an optional vector specifying a subset of observations
21
  \item{subset}{an optional vector specifying a subset of observations
20
    to be used in the fitting process.}
22
    to be used in the fitting process.}
21
  \item{ylab}{the y label of the plot(s).}
23
  \item{ylab}{the y label of the plot(s).}
22
  \item{\dots}{Further graphical parameters may also be passed as
-
 
23
    arguments, see \code{\link{par}}.}
-
 
24
  \item{ask}{logical, see \code{\link{par}}.}
24
  \item{ask}{logical, see \code{\link{par}}.}
25
}
25
}
26
\details{
26
\details{
27
  Both the terms in the formula and the \code{\dots} arguments are
27
  Both the terms in the formula and the \code{\dots} arguments are
28
  evaluated in \code{data} enclosed in \code{parent.frame()} if
28
  evaluated in \code{data} enclosed in \code{parent.frame()} if