The R Project SVN R

Rev

Rev 61153 | Rev 68948 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/graphics/man/plot.dataframe.Rd
2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2007 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
27442 ripley 6
\name{plot.data.frame}
56186 murdoch 7
\alias{plot.data.frame}
27442 ripley 8
\title{Plot Method for Data Frames}
9
\description{
32214 ripley 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.
27442 ripley 12
}
13
\usage{
14
\method{plot}{data.frame}(x, \dots)
15
}
16
\arguments{
17
  \item{x}{object of class \code{data.frame}.}
18
  \item{\dots}{further arguments to \code{\link{stripchart}},
19
    \code{\link{plot.default}} or \code{\link{pairs}}.}
20
}
32212 ripley 21
\details{
32214 ripley 22
  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
24
  the data frame to a numeric matrix and then calls \code{\link{pairs}}
25
  to produce a scatterplot matrix).  This can fail and may well be
26
  inappropriate: for example numerical conversion of dates will lose
27
  their special meaning and a warning will be given.
28
 
29
  For a two-column data frame it plots the second column against the
30
  first by the most appropriate method for the first column.
61433 ripley 31
 
32214 ripley 32
  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
34
  single column.
32212 ripley 35
}
27442 ripley 36
\seealso{
37
  \code{\link{data.frame}}
38
}
39
\examples{
61153 ripley 40
plot(OrchardSprays[1], method = "jitter")
27442 ripley 41
plot(OrchardSprays[c(4,1)])
42
plot(OrchardSprays)
32214 ripley 43
 
44
plot(iris)
45
plot(iris[5:4])
46
plot(women)
27442 ripley 47
}
48
\keyword{hplot}
49
\keyword{methods}