Usage
gpairs(x,
upper.pars = list(scatter = "points",
conditional = "barcode",
mosaic = "mosaic"),
lower.pars = list(scatter = "points",
conditional = "boxplot",
mosaic = "mosaic"),
diagonal = "default",
outer.margins = list(bottom = unit(2, "lines"),
left = unit(2, "lines"),
top = unit(2, "lines"),
right = unit(2, "lines")),
xylim = NULL,
outer.labels = NULL, outer.rot = c(90, 0), gap = 0.05,
buffer = 0.02, reorder = NULL, cluster.pars = NULL,
stat.pars = NULL, scatter.pars = NULL,
bwplot.pars = NULL, stripplot.pars = NULL, barcode.pars=NULL,
mosaic.pars = NULL, axis.pars = NULL, diag.pars = NULL,
whatis = FALSE)
corrgram(x)
Arguments
x
a data frame (or matrix the relationships between whose columns are to be examined). Any combination of quantitative and categorical variables is acceptable.
diagonal
by default, the diagonal from the top left to the bottom right is used for displaying the variable names (and, in our version, the marginal distributions of the variables); diagonal="other"
will place the diagonal running from the top right d
outer.margins
a list of length 4 with units as components named bottom, left, top, and right, giving the outer margins; the default uses two lines of text. A vector of length 4 with units (ordered properly) will work, as will a vector of length 4 with numeric values (
xylim
optionally specify a single range to be used as xlim
and ylim
where appropriate. Note that if this option causes cropping, it will fail to work in barcode panels.
outer.labels
the default is NULL
, for alternating axis labels around the perimeter. If "all"
, all labels are printed, and if "none"
no labels are printed.
outer.rot
a 2-vector (x, y) rotating the top/bottom outer labels x
degrees and the left/right outer labels y
degrees. Only works for categorical labels of boxplot and mosaic panels.
gap
the gap between the tiles; defaulting to 0.05 of the width of a tile.
buffer
the fraction by which to expand the range of quantitative variables to provide plots that will not truncate plotting symbols. Defaults to 0 percent of range currently.
reorder
currently only support for the string "cluster"
, which reorders the columns according to the output of hclust
. Note that factors are coerced to numbers by replacing them with integers, which imp cluster.pars
a list with two elements named dist.method
and hclust.method
. These are passed respectively to dist
and hclust
. NULL
is eq stat.pars
NULL
is equivalent to list(fontsize = 7, signif = 0.05, verbose = FALSE, use.color = TRUE, missing = 'missing', just = 'centre')
; stat.pars$verbose
can be TRUE
(providing 5 statistics), FALSE
scatter.pars
NULL
is equivalent to list(pch = 1, size = unit(0.25, "char"), col = "black", frame.fill = NULL, border.col = "black")
.
bwplot.pars
NULL
, passed to bwplot
for producing boxplots.
stripplot.pars
NULL
is equivalent to list(pch = 1, size = unit(0.5, 'char'), col = 'black', jitter = FALSE)
.
barcode.pars
NULL
is equivalent to list(nint = 0, ptsize = unit(0.25, "char"), ptpch = 1, bcspace = NULL, use.points = FALSE)
.
mosaic.pars
NULL
. Currently, only shade
and gp_labels
are passed through to strucplot
for producing mosaic tiles.
axis.pars
NULL
is equivalent to list(n.ticks = 5, fontsize = 9)
.
diag.pars
NULL
is equivalent to list(fontsize = 9, show.hist = TRUE, hist.color = 'black')
.
whatis
default is FALSE
; TRUE
returns whatis(x)
.