vcd (version 0.9-0)

Pairs plot panel functions for diagonal cells: Diagonal Panel Functions for Table Pairs Plot

Description

Diagonal panel functions for pairs.table.

Usage

pairs_barplot(gp_bars = gpar(fill = "gray"),
  gp_vartext = gpar(fontsize = 17),
  gp_leveltext = gpar(), ...)
pairs_text(dimnames = TRUE, gp_vartext = gpar(fontsize = 17), 
  gp_leveltext = gpar(), gp_border = gpar(), ...)

Arguments

dimnames
vector of logicals indicating whether the factor levels should be displayed (only used for pairs_text).
gp_bars
object of class "gpar" used for bars (only used for pairs_barplot).
gp_vartext
object of class "gpar" used for the factor names.
gp_leveltext
object of class "gpar" used for the factor levels.
gp_border
object of class "gpar" used for the border (only used for pairs_text).
...
other parameters passed to the underlying graphics functions.

Value

  • A function with one argument: the marginal table for the corresponding dimension.

Details

In the diagonal cells, the pairsplot visualizes statistics or information for each dimension (that is: the single factors) alone. pairs_text displays the factor's name, and optionally also the factor levels. pairs_barplot produces a barplot of the corresponding factor, along with the factor's name.

See Also

pairs.table, pairs_assoc, pairs_mosaic

Examples

Run this code
data(UCBAdmissions)

pairs(UCBAdmissions) # pairs_barplot is default
pairs(UCBAdmissions, diag_panel = pairs_text)

Run the code above in your browser using DataLab