Distributional Plots of Variables in a Data Frame

DESCRIPTION:

Plots the sample distributions of the variables of a data frame.

USAGE:

plot.data.frame(x, labels = dimnames(data)[[2]], ...) 
plot.bdFrame(x, labels = names(x), ..., ask = T, nprobs = min(c(nrow(x), 500)), 
      nbins = max(2 * nprobs, 1000))

REQUIRED ARGUMENTS:

x
data frame or bdFrame to be plotted.

OPTIONAL ARGUMENTS:

labels
character vector of labels for the variables. If the elements have names, they are matched to the names of the variables of the data frame; if not, the elements are assumed to be in the same order as the columns of the data frame. Graphical parameters may also be supplied as arguments to this function (see ).
ask
If TRUE, display a dialog box to confirm displaying a new page of plots.
nprobs
quantiles corresponding to the number of equally-spaced probabilities, between 0 and 1. The default nprobs=min(c(nrow(x), 500)) indicates that the maximum plotted is 500 quantiles, regardless of the size of the data set.
nbins
For continous columns, plot the quantiles of the data, computing the quantiles by binning the data into nbins bins (getting a count for each bin).

SIDE EFFECTS:

a plot is produced on the current graphics device.

DETAILS:

This function is a method for the generic function for class data.frame and class bdFrame. It can be invoked by calling for an object x of the appropriate class, or directly by calling plot.data.frame regardless of the class of the object.

This function makes plots of the sample distributions of the variables of a data frame. The observations of numeric predictors are graphed by a quantile plot; that is, if x is a numeric variable, sort(x) is graphed against ppoints(x). For a factor, counts of occurrences of levels are graphed.

Note that somewhat different plots are obtained by attaching the data frame and plotting the individual variables. Try both options.

plot.bdFrame is available only when the Big Data library is loaded.

SEE ALSO:

, , , , .

EXAMPLES:

plot(air)
plot(as.bdFrame(air))