splom

0th

Percentile

Scatter Plot Matrices

Draw Conditional Scatter Plot Matrices and Parallel Coordinate Plots

Keywords
hplot
Usage
splom(x, data, ...)
parallel(x, data, ...)

## S3 method for class 'formula': splom(x, data, auto.key = FALSE, 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, drop.unused.levels, ..., lattice.options = NULL, default.scales, subset = TRUE) ## S3 method for class 'formula': parallel(x, data, auto.key = FALSE, 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, drop.unused.levels, ..., lattice.options = NULL, default.scales, subset = TRUE)

## S3 method for class 'data.frame': splom(x, data = NULL, \dots, groups = NULL, subset = TRUE) ## S3 method for class 'matrix': splom(x, data = NULL, \dots, groups = NULL, subset = TRUE)

## S3 method for class 'matrix': parallel(x, data = NULL, \dots, groups = NULL, subset = TRUE) ## S3 method for class 'data.frame': parallel(x, data = NULL, \dots, groups = NULL, subset = TRUE)

Details

splom produces Scatter Plot Matrices. The role usually played by panel is taken over by superpanel, which determines how the columns of x are to be arranged for pairwise plots. The only available option currently is panel.pairs.

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 fine-tune 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.

parallel 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.

Value

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.

See Also

xyplot, Lattice, panel.pairs

Aliases
Examples
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
Length", "Sepal
Width", "Petal
Length"),
      page = function(...) {
          ltext(x = seq(.6, .8, len = 4), 
                y = seq(.9, .6, len = 4), 
                lab = c("Three", "Varieties", "of", "Iris"),
                cex = 2)
      })
parallel(~iris[1:4] | Species, iris)
Documentation reproduced from package lattice, version 0.17-10, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.