gpairs: Scatterplot matrices

Description Usage Arguments

View source: R/gplots.R

Description

A matrix of scatterplots is produced.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
gpairs(x, ...)

## Default S3 method:
gpairs(x, labels, panel = points, ...,
  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 = "", grid = TRUE, col.grid = "grey90", col.acc = "white")

## S3 method for class 'formula'
gpairs(formula, data = NULL, ..., subset,
  na.action = stats::na.pass, grid = TRUE, col.grid = "grey90",
  col.acc = "white")

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.

...

arguments to be passed to or from methods.

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

labels

the names of the variables.

panel

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

lower.panel

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

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

graphics parameters for the text panel.

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?

gap

distance between subplots, in margin lines.

log

a character string indicating if logarithmic axes are to be used: see plot.default. log = "xy" specifies logarithmic axes for all variables.

grid

logical; if TRUE, a background grid will be drawn

col.grid

grid color

col.acc

grid accent color

formula

a formula, such as ~ x + y + z. Each term will give a separate variable in the pairs plot, so terms should be numeric vectors. (A response will be interpreted as another variable, but not treated specially, so it is confusing to use one.)

data

a data.frame (or list) from which the variables in formula should be taken.

subset

an optional vector specifying a subset of observations to be used for plotting.

na.action

a function which indicates what should happen when the data contain NAs. The default is to pass missing values on to the panel functions, but na.action = na.omit will cause cases with missing values in any of the variables to be omitted entirely.


raredd/plotr documentation built on Nov. 19, 2018, 11:02 a.m.