pairs.table
.pairs_barplot(gp_bars = NULL,
gp_vartext = gpar(fontsize = 17),
gp_leveltext = gpar(),
just_leveltext = c("center", "bottom"),
just_vartext = c("center", "top"),
rot = 0, abbreviate = FALSE, check_overlap = TRUE, fill = "grey",
var_offset = unit(1, "npc"), ...)
pairs_text(dimnames = TRUE, gp_vartext = gpar(fontsize = 17),
gp_leveltext = gpar(), gp_border = gpar(), ...)
pairs_diagonal_text(varnames = TRUE, gp_vartext = gpar(fontsize = 17, fontface = "bold"),
gp_leveltext = gpar(), gp_border = gpar(), pos = c("right","top"),
distribute = c("equal","margin"), rot = 0, ...)
pairs_diagonal_mosaic(split_vertical = TRUE, margins = unit(0, "lines"),
offset_labels = -0.4, offset_varnames = 0,
gp = NULL, fill = "grey", ...)
pairs_text
).pairs_text_diagonal
)."gpar"
used for bars (only used
for pairs_barplot
). If unspecified, the default is to set the fill
component of this object to the fill
argument."gpar"
used for the factor
names."gpar"
used for the factor
levels."gpar"
used for the border
(only used for pairs_text
)."gpar"
used for the tiles (only used
for pairs_diagonal_mosaic
).
If unspecified, the default is to set the fill
component of this object to the fill
argument.pairs_barplot
) or tiles (for pairs_diagonal_mosaic
).pairs_text_diagonal
).pairs_text_diagonal
).TRUE
means 1 character, FALSE
causes no
abbreviation.TRUE
, some levels will suppressed to
avoid overlapping, if any.x
(values are recycled as needed).
A TRUE
component indicates that the tile(s) of the
corresponding dimension should be split vertically, F
"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 "unit"
specifying the
offset of variable names from the bottom of the barplots
created by pairs_barplot
. If numeric, the unit defaults to "npc".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.pairs.table
,
pairs_assoc
,
pairs_mosaic
data("UCBAdmissions")
pairs(UCBAdmissions) # pairs_barplot is default
pairs(UCBAdmissions, diag_panel = pairs_text)
pairs(UCBAdmissions, diag_panel = pairs_diagonal_text)
pairs(Titanic, diag_panel = pairs_diagonal_text)
pairs(Titanic, diag_panel = pairs_diagonal_text(distribute = "margin"))
pairs(Titanic,
diag_panel = pairs_diagonal_text(distribute = "margin", rot = 45))
Run the code above in your browser using DataLab