pairs.panels {psych}R Documentation

SPLOM, histograms and correlations for a data matrix

Description

Adapted from the help page for pairs, pairs.panels shows a scatter plot of matrices (SPLOM), with bivariate scatter plots below the diagonal, histograms on the diagonal, and the Pearson correlation above the diagonal. Useful for descriptive statistics of small data sets.

Usage

pairs.panels(x, smooth = TRUE, scale = FALSE, digits = 2, pch=20, ...)

Arguments

x a data.frame or matrix
smooth TRUE draws loess smooths
scale TRUE scales the correlation font by the size of the absolute correlation.
digits the number of digits to show
pch The plot character (defaults to 20 which is a '.').
... other options for pairs

Details

Shamelessly adapted from the pairs help page. Uses panel.cor, panel.cor.scale, and panel.hist, all taken from the help pages for pairs.

Value

a scatter plot matrix (SPLOM) is drawn in the graphic window. The lower off diagonal draws scatter plots, the diagonal histograms, the upper off diagonal reports the Pearson correlation (with pairwise deletion).

See Also

pairs

Examples


pairs.panels(attitude)   #see the graphics window


[Package psych version 1.0-33 Index]