The R Project SVN R

Rev

Rev 74363 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74363 Rev 89484
Line 9... Line 9...
9
\description{
9
\description{
10
  \code{plot.data.frame}, a method for the \code{\link{plot}} generic.
10
  \code{plot.data.frame}, a method for the \code{\link{plot}} generic.
11
  It is designed for a quick look at numeric data frames.
11
  It is designed for a quick look at numeric data frames.
12
}
12
}
13
\usage{
13
\usage{
14
\method{plot}{data.frame}(x, \dots)
14
\method{plot}{data.frame}(x, formula = NULL, \dots)
15
}
15
}
16
\arguments{
16
\arguments{
17
  \item{x}{object of class \code{data.frame}.}
17
  \item{x}{object of class \code{data.frame}.}
-
 
18
  \item{formula}{ optional formula, as in \code{\link{plot.formula}}. }
18
  \item{\dots}{further arguments to \code{\link{stripchart}},
19
  \item{\dots}{further arguments to \code{\link{plot.formula}},
19
    \code{\link{plot.default}} or \code{\link{pairs}}.}
20
    \code{\link{stripchart}}, \code{\link{plot.default}} or
-
 
21
    \code{\link{pairs}}. }
20
}
22
}
21
\details{
23
\details{
22
  This is intended for data frames with \emph{numeric} columns. For more
24
  This is intended for data frames with \emph{numeric} columns. For more
23
  than two columns it first calls \code{\link{data.matrix}} to convert
25
  than two columns it first calls \code{\link{data.matrix}} to convert
24
  the data frame to a numeric matrix and then calls \code{\link{pairs}}
26
  the data frame to a numeric matrix and then calls \code{\link{pairs}}
Line 30... Line 32...
30
  first by the most appropriate method for the first column.
32
  first by the most appropriate method for the first column.
31
 
33
 
32
  For a single numeric column it uses \code{\link{stripchart}}, and for
34
  For a single numeric column it uses \code{\link{stripchart}}, and for
33
  other single-column data frames tries to find a plot method for the
35
  other single-column data frames tries to find a plot method for the
34
  single column.
36
  single column.
-
 
37
 
-
 
38
  In case a \code{formula} is provided, the \code{\link{plot.formula}}
-
 
39
  method is called, allowing a simpler invocation of the formula method
-
 
40
  using the \code{\link[base:pipeOp]{pipe operator}}.
35
}
41
}
36
\seealso{
42
\seealso{
37
  \code{\link{data.frame}}
43
  \code{\link{data.frame}}
38
}
44
}
39
\examples{
45
\examples{
40
plot(OrchardSprays[1], method = "jitter")
46
plot(OrchardSprays[1], method = "jitter")
41
plot(OrchardSprays[c(4,1)])
47
plot(OrchardSprays[c(4,1)])
42
plot(OrchardSprays)
48
plot(OrchardSprays)
-
 
49
plot(OrchardSprays, decrease ~ treatment)
43
 
50
 
44
plot(iris)
51
plot(iris)
45
plot(iris[5:4])
52
plot(iris[5:4])
46
plot(women)
53
plot(women)
47
}
54
}