B_08_splom {lattice}  R Documentation 
Draw Conditional Scatter Plot Matrices and Parallel Coordinate Plots
splom(x, data, ...)
parallelplot(x, data, ...)
## S3 method for class 'formula'
splom(x,
data,
auto.key = lattice.getOption("default.args")$auto.key,
aspect = 1,
between = list(x = 0.5, y = 0.5),
panel = lattice.getOption("panel.splom"),
prepanel,
scales,
strip,
groups,
xlab,
xlim,
ylab = NULL,
ylim,
superpanel = lattice.getOption("panel.pairs"),
pscales = 5,
varnames = NULL,
drop.unused.levels,
...,
lattice.options = NULL,
default.scales,
default.prepanel = lattice.getOption("prepanel.default.splom"),
subset = TRUE)
## S3 method for class 'formula'
parallelplot(x,
data,
auto.key = lattice.getOption("default.args")$auto.key,
aspect = "fill",
between = list(x = 0.5, y = 0.5),
panel = lattice.getOption("panel.parallel"),
prepanel,
scales,
strip,
groups,
xlab = NULL,
xlim,
ylab = NULL,
ylim,
varnames = NULL,
horizontal.axis = TRUE,
drop.unused.levels,
...,
lattice.options = NULL,
default.scales,
default.prepanel = lattice.getOption("prepanel.default.parallel"),
subset = TRUE)
## S3 method for class 'data.frame'
splom(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'matrix'
splom(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'matrix'
parallelplot(x, data = NULL, ..., groups = NULL, subset = TRUE)
## S3 method for class 'data.frame'
parallelplot(x, data = NULL, ..., groups = NULL, subset = TRUE)
x 
The object on which method dispatch is carried out. For the For the 
data 
For the 
aspect 
aspect ratio of each panel (and subpanel), square by default for

between 
to avoid confusion between panels and subpanels, the default is to show the panels of a splom plot with space between them. 
panel 
For For 
superpanel 
function that sets up the splom display, by default as a scatterplot matrix. 
pscales 
a numeric value or a list, meant to be a less functional substitute
for the 
varnames 
A character or expression vector or giving names to be used for the
variables in 
horizontal.axis 
logical indicating whether the parallel axes should
be laid out horizontally ( 
auto.key , prepanel , scales , strip , groups , xlab , xlim , ylab , ylim , drop.unused.levels , lattice.options , default.scales , subset 
See 
default.prepanel 
Fallback prepanel function. See 
... 
Further arguments. See corresponding entry in

splom
produces Scatter Plot Matrices. The role usually played
by panel
is taken over by superpanel
, which takes a data
frame subset and is responsible for plotting it. It is called with
the coordinate system set up to have both x and ylimits from
0.5
to ncol(z) + 0.5
. The only builtin option
currently available is panel.pairs
, which calls a
further panel function for each pair (i, j)
of variables in
z
inside a rectangle of unit width and height centered at
c(i, j)
(see panel.pairs
for details).
Many of the finer customizations usually done via arguments to high
level function like xyplot
are instead done by
panel.pairs
for splom
. These include control of axis
limits, tick locations and prepanel calcultions. If you are trying to
finetune your splom
plot, definitely look at the
panel.pairs
help page. The scales
argument is
usually not very useful in splom
, and trying to change it may
have undesired effects.
parallelplot
draws Parallel Coordinate Plots. (Difficult to
describe, see example.)
These and all other high level Trellis functions have several
arguments in common. These are extensively documented only in the
help page for xyplot
, which should be consulted to learn more
detailed usage.
An object of class "trellis"
. The
update
method can be used to
update components of the object and the
print
method (usually called by
default) will plot it on an appropriate plotting device.
Deepayan Sarkar Deepayan.Sarkar@Rproject.org
xyplot
, Lattice
, panel.pairs
,
panel.parallel
.
super.sym < trellis.par.get("superpose.symbol")
splom(~iris[1:4], groups = Species, data = iris,
panel = panel.superpose,
key = list(title = "Three Varieties of Iris",
columns = 3,
points = list(pch = super.sym$pch[1:3],
col = super.sym$col[1:3]),
text = list(c("Setosa", "Versicolor", "Virginica"))))
splom(~iris[1:3]Species, data = iris,
layout=c(2,2), pscales = 0,
varnames = c("Sepal\nLength", "Sepal\nWidth", "Petal\nLength"),
page = function(...) {
ltext(x = seq(.6, .8, length.out = 4),
y = seq(.9, .6, length.out = 4),
labels = c("Three", "Varieties", "of", "Iris"),
cex = 2)
})
parallelplot(~iris[1:4]  Species, iris)
parallelplot(~iris[1:4], iris, groups = Species,
horizontal.axis = FALSE, scales = list(x = list(rot = 90)))