Description Usage Arguments Value Author(s) See Also
A minor modification of the car package's scatterplotMatrix function that makes
enhanced scatterplot matrices with univariate displays down the diagonal;
spmBCA
is an abbreviation for scatterplotMatrixBCA
.
This function just sets up a call to pairs
with custom panel functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | scatterplotMatrixBCA(x, ...)
## S3 method for class 'formula'
scatterplotMatrixBCA(x, data=NULL, subset, labels, ...)
## Default S3 method:
scatterplotMatrixBCA(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 = 2, 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()[c(2, 1, 3)] else rep(palette(),
length = n.groups), pch = 1:n.groups, lwd = 2,
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, ...)
spmBCA(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 with minor modifications by Dan Putler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.