plmatrix {plgraphics} | R Documentation |
Plots a scatterplot matrix, for which the variables shown horizontally do not necessarily coincide with those shown vertically. If desired, the matrix is divided into several blocks such that it fills more than 1 plot page.
plmatrix(x, y = NULL, data = NULL, panel = plpanel, panelargs = plargs, nrow = 0, ncol = nrow, reduce = TRUE, keeppar = FALSE, xaxmar=NULL, yaxmar=NULL, xlabmar=NULL, ylabmar=NULL, xlab=NULL, ylab=NULL, oma=NULL, cex = NULL, diaglabel.cex = NULL, plargs = NULL, ploptions = NULL, ...)
x |
data for columns (x axis), or formula defining column variables. If it is a formula containing a left hand side, the left side variables will be used last. |
y |
data or formula for rows (y axis). Defaults to |
data |
data.frame containing the variables in case |
panel |
a function that generates the marks of the individual
panels, see Details.
Defaults to |
panelargs |
a list of arguments to be passed to the |
nrow |
number of rows of panels on a page |
ncol |
number of columns of panels on a page |
reduce |
if y is not provided and |
keeppar |
logical. If TRUE, the graphical settings "mfrow", "mar", "cex", and "mgp" will be maintained, otherwise, the old values will be restored (default). |
xaxmar, yaxmar |
margin in which the axis (tick marks and
corresponding labels) should be shown: either 1 or 3 for
|
xlabmar, ylabmar |
in which margin should the x- [y-] axis be labelled? |
xlab, ylab |
not used (introduced to avoid confusion with
|
oma |
width of outer margins, ee |
cex |
general character expansion, will be multiplied by
|
diaglabel.cex |
Character expansion for labels appearing in the "diagonal" of the scatterplot matrix (if present) |
plargs |
result of calling |
ploptions |
list of pl options. |
... |
further arguments passed to the |
The panel
function can be user written. It needs >=5
arguments which must correspond to the arguments of
plpanel
: x, y, indx, indy, plargs
.
If some arguments are not used, just introduce them as arguments
to the function anyway in order to avoid (unnecessary) error messages
and stops.
Since large scatterplot matrices lead to tiny panels, plmatrix
splits the matrix into blocks of at most nrow
rows and
ncol
columns. If these numbers are missing, they default to
nrow=5
and ncol=6
for landscape pages, and to
nrow=8
and ncol=5
for portrait pages.
none
There are many more arguments, obtained from pl.control
,
see ?pl.control
. These can be passed to plmatrix
by an argument plargs
that is hidden in the ... argument list.
Werner A. Stahel, ETH Zurich
plmatrix(iris, pch=as.numeric(Species)) plmatrix(~Sepal.Length+Sepal.Width, ~Petal.Length+Petal.Width, data=iris, smooth=TRUE, plab=substr(Species,1,2))