pairs2: Scatterplot Matrices

pairs2R Documentation

Scatterplot Matrices

Description

A matrix of scatterplots is produced. Alternative version of pairs() (default S3 method) where all axes are on the bottom and left sides. Argument information copied from pairs(). NB! Better functionality for layout alterations is in the works.

Usage

pairs2(
  x,
  labels,
  panel = points,
  ...,
  horInd = 1:nc,
  verInd = 1:nc,
  lower.panel = panel,
  upper.panel = panel,
  diag.panel = NULL,
  text.panel = textPanel,
  label.pos = 0.5 + has.diag/3,
  line.main = 3,
  cex.labels = NULL,
  font.labels = 1,
  row1attop = TRUE,
  gap = 1,
  log = ""
)

Arguments

x

the coordinates of points given as numeric columns of a matrix or data frame. Logical and factor columns are converted to numeric in the same way that data.matrix() does.

labels

the names of the variables.

panel

function(x, y, ...) which is used to plot the contents of each panel of the display.

...

arguments to be passed to or from methods. Also, graphical parameters (par()) can be given as can arguments to plot such as main. par("oma") will be set appropriately unless specified.

horInd, verInd

The (numerical) indices of the variables to be plotted on the horizontal and vertical axes respectively.

lower.panel, upper.panel

separate panel functions (or NULL) to be used below and above the diagonal respectively.

diag.panel

optional function(x, ...) to be applied on the diagonals.

text.panel

optional function(x, y, labels, cex, font, ...) to be applied on the diagonals.

label.pos

y position of labels in the text panel.

line.main

if main is specified, line.main gives the line argument to mtext() which draws the title. You may want to specify oma when changing line.main.

cex.labels, font.labels

graphics parameters for the text panel.

row1attop

logical. Should the layout be matrix-like with row 1 at the top, or graph-like with row 1 at the bottom? The latter (non default) leads to a basically symmetric scatterplot matrix.

gap

distance between subplots, in margin lines.

log

a character string indicating if logarithmic axes are to be used, see plot.default() or a numeric vector of indices specifying the indices of those variables where logarithmic axes should be used for both x and y. log = "xy" specifies logarithmic axes for all variables.

Details

Please see pairs()


cekehe/rappp documentation built on May 17, 2022, 8:54 a.m.