Rev 68948 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/graphics/man/plot.dataframe.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2014 R Core Team% Distributed under GPL 2 or later\name{plot.data.frame}\alias{plot.data.frame}\title{Plot Method for Data Frames}\description{\code{plot.data.frame}, a method for the \code{\link{plot}} generic.It is designed for a quick look at numeric data frames.}\usage{\method{plot}{data.frame}(x, \dots)}\arguments{\item{x}{object of class \code{data.frame}.}\item{\dots}{further arguments to \code{\link{stripchart}},\code{\link{plot.default}} or \code{\link{pairs}}.}}\details{This is intended for data frames with \emph{numeric} columns. For morethan two columns it first calls \code{\link{data.matrix}} to convertthe data frame to a numeric matrix and then calls \code{\link{pairs}}to produce a scatterplot matrix. This can fail and may well beinappropriate: for example numerical conversion of dates will losetheir special meaning and a warning will be given.For a two-column data frame it plots the second column against thefirst by the most appropriate method for the first column.For a single numeric column it uses \code{\link{stripchart}}, and forother single-column data frames tries to find a plot method for thesingle column.}\seealso{\code{\link{data.frame}}}\examples{plot(OrchardSprays[1], method = "jitter")plot(OrchardSprays[c(4,1)])plot(OrchardSprays)plot(iris)plot(iris[5:4])plot(women)}\keyword{hplot}\keyword{methods}