Learn R Programming

compositions (version 2.0-2)

gsipairs: Internal functions of the compositions package

Description

Creates a paired plot like pairs but allows to add additional panels afterwards

Usage

gsi.pairs(x, labels, panel = points, …, main = NULL, oma = NULL, 
    font.main = par("font.main"), cex.main = par("cex.main"), 
    lower.panel = panel, upper.panel = panel, diag.panel = NULL, 
    text.panel = textPanel, label.pos = 0.5 + has.diag/3, cex.labels = NULL, 
    font.labels = 1, row1attop = TRUE, gap = 1, add=list(), 
    xlim=apply(x,2,range), ylim=apply(x,2,range), log="",
    onlyPanel=NULL,noplot=FALSE,trimode=FALSE)
gsi.add2pairs(x,panel,...,noplot=FALSE)
gsi.plots

Arguments

x

a multivariate dataset

labels

The names of the variables

panel

The function to performe the actual pairwise plots.

see graphics::pairs

main

see graphics::pairs

oma

see graphics::pairs

font.main

see graphics::pairs

cex.main

see graphics::pairs

lower.panel

see graphics::pairs

upper.panel

see graphics::pairs

diag.panel

see graphics::pairs

text.panel

see graphics::pairs

label.pos

see graphics::pairs

cex.labels

see graphics::pairs

font.labels

see graphics::pairs

row1attop

see graphics::pairs

gap

see graphics::pairs

add

additional parameter containing a list of additional panels

xlim

additional 2xncol(x)-matrix parameter giving in xlim[,j] the xlims of the j-th column

ylim

additional 2xncol()-matrix parameter giving in ylim[,i] the ylims of the j-th column

log

additional parameter with possible values like in graphics::plot allowing to log some plots, without a warning

noplot

Logical indicating wether the plotting should be suppressed. This is usefull for plotting single page postscripts.

Details

gsi.pairs essentially copies the functionality of graphics::pairs. However it additionally stores its own parameters in the dev.cur() position of gsi.plots and allows to modify the parameters and re-do a modified plot afterwards. This is mainly done by gsi.add2pairs by modifying the additional add parameter, that specifies more panels. This mechanism should not be used directly, since it is planed to replace it by a more rigorous solution soon.

See Also

gsi,