| scatterplotMatrix {car} | R Documentation | 
Enhanced scatterplot matrices with univariate displays down the diagonal;
spm is an abbreviation for scatterplotMatrix.
This function just sets up a call to pairs with custom panel functions.
scatterplotMatrix(x, ...)
## S3 method for class 'formula'
scatterplotMatrix(x, data=NULL, subset, labels, ...)
## Default S3 method:
scatterplotMatrix(x, var.labels = colnames(x), diagonal = c("density", 
    "boxplot", "histogram", "oned", "qqplot", "none"), adjust = 1, 
    nclass, plot.points = TRUE, smooth = TRUE, 
    spread = smooth && !by.groups, span = 0.5, 
    loess.threshold = 5, reg.line = lm, 
    transform = FALSE, family = c("bcPower", "yjPower"), ellipse = FALSE, 
    levels = c(0.5, 0.95), robust = TRUE, groups = NULL, by.groups = FALSE, 
    labels, id.method="mahal", id.n=0, id.cex=1, id.col=palette()[1], 
    col = if (n.groups == 1) palette()[3:1] else rep(palette(), 
        length = n.groups), 
    pch = 1:n.groups, lwd = 1, lwd.smooth = lwd, 
    lwd.spread = lwd, lty = 1, lty.smooth = lty, lty.spread = 2, 
    cex = par("cex"), cex.axis = par("cex.axis"), cex.labels = NULL, 
    cex.main = par("cex.main"), legend.plot = length(levels(groups)) > 
        1, row1attop = TRUE, ...)
spm(x, ...)
x | 
 a data matrix, numeric data frame, or a one-sided “model” formula, of the form 
  | 
data | 
 for   | 
subset | 
 expression defining a subset of observations.  | 
labels,id.method,id.n,id.cex,id.col | 
 Arguments for the labelling of
points.  The default is   | 
var.labels | 
 variable labels (for the diagonal of the plot).  | 
diagonal | 
 contents of the diagonal panels of the plot.  | 
adjust | 
 relative bandwidth for density estimate, passed to 
  | 
nclass | 
 number of bins for histogram, passed to   | 
plot.points | 
 if   | 
smooth | 
 if   | 
spread | 
 if   | 
span | 
 span for loess smoother.  | 
loess.threshold | 
 suppress the loess smoother if there are fewer than   | 
reg.line | 
 if not   | 
transform | 
 if   | 
family | 
 family of transformations to estimate:   | 
ellipse | 
 if   | 
levels | 
 levels or levels at which concentration ellipses are plotted;
the default is   | 
robust | 
 if   | 
groups | 
 a factor or other variable dividing the data into groups; groups are plotted with different colors and plotting characters.  | 
by.groups | 
 if   | 
pch | 
 plotting characters for points; default is the plotting characters in
order (see   | 
col | 
 colors for lines and points; the default is taken from the color palette, 
with   | 
lwd | 
 width of linear-regression lines (default   | 
lwd.smooth | 
 width for smooth regression lines (default is the same as   | 
lwd.spread | 
 width for lines showing spread (default is the same as   | 
lty | 
 type of linear-regression lines (default   | 
lty.smooth | 
 type of smooth regression lines (default is the same as   | 
lty.spread | 
 width for lines showing spread (default is   | 
cex, cex.axis, cex.labels, cex.main | 
 set sizes of various graphical elements
(see   | 
legend.plot | 
 if   | 
row1attop | 
 If   | 
... | 
 arguments to pass down.  | 
NULL. This function is used for its side effect: producing
a plot.
John Fox jfox@mcmaster.ca
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
pairs, scatterplot,
dataEllipse, powerTransform, 
bcPower, yjPower, cov.trob,
showLabels.
scatterplotMatrix(~ income + education + prestige | type, data=Duncan)
scatterplotMatrix(~ income + education + prestige, 
    transform=TRUE, data=Duncan)
scatterplotMatrix(~ income + education + prestige | type, smooth=FALSE, 
	by.group=TRUE, transform=TRUE, data=Duncan)