Usage
## S3 method for class 'table':
pairs(x, upper_panel = pairs_mosaic, upper_panel_args = list(),
lower_panel = pairs_mosaic, lower_panel_args = list(),
diag_panel = pairs_barplot, diag_panel_args = list(),
main = NULL, sub = NULL, main_gp = gpar(fontsize = 20),
sub_gp = gpar(fontsize = 15), space = 0.3,
newpage = TRUE, pop = TRUE, margins = unit(1, "lines"), ...)
Arguments
x
a contingency table in array form, with optional category
labels specified in the dimnames(x)
attribute.
upper_panel
function for the upper triangle of the matrix, or
corresponding generating function. If NULL
, no panel is drawn.
upper_panel_args
list of arguments for the generating
function, if specified.
lower_panel
function for the lower triangle of the matrix, or
corresponding generating function. If NULL
, no panel is drawn.
lower_panel_args
list of arguments for the panel-generating
function, if specified.
diag_panel
function for the diagonal of the matrix, or
corresponding generating function. If NULL
, no panel is drawn.
diag_panel_args
list of arguments for the generating
function, if specified.
main
either a logical, or a character string used for plotting
the main title. If main
is a logical and TRUE
, the
name of the object supplied as x
is used.
sub
a character string used for plotting the subtitle.
If sub
is a logical and TRUE
and main
is unspecified, the
name of the object supplied as x
is used.
main_gp, sub_gp
object of class "gpar"
containing the graphical
parameters used for the main (sub) title, if specified.
space
double specifying the distance between the cells.
newpage
logical controlling whether a new grid page should be
created.
pop
logical indicating whether all viewports should be popped
after the plot has been drawn.
margins
either an object of class "unit"
of length 4, or
a numeric vector of length 4. The elements are recycled as needed.
The four components specify the top, right,
bottom, and left margin of the plot, respectively.
When a numeric
...
For convenience,
list of arguments for the panel-generating
functions of upper and lower panels, if specified.