Following the xpose
design pattern to derive <ggpairs
> plots.
Established xplot_
are used to generate parts of the grid.
xplot_pairs(
xpdb,
mapping = NULL,
cont_opts = list(group = "ID", guide = FALSE, type = "ps"),
dist_opts = list(guide = FALSE, type = "hr"),
cat_opts = list(type = "bo", log = NULL),
contcont_opts = list(other_fun = NULL, stars = FALSE, digits = reportable_digits(xpdb),
title = "Pearson Corr"),
catcont_opts = list(other_fun = NULL, stars = FALSE, digits = reportable_digits(xpdb),
title = "Spearman rho"),
catcat_opts = list(use_rho = TRUE),
title = NULL,
subtitle = NULL,
caption = NULL,
tag = NULL,
plot_name = "pairs",
gg_theme,
xp_theme,
opt,
quiet,
progress = rlang::is_interactive() && quiet,
switch = NULL,
...
)
specified pair plot
<xp_xtras> or <
xpose_data`> object
ggplot2
style mapping
List of options to pass to xplot_scatter
. See Details
List of options to pass to xplot_distribution
. See Details
List of options to pass to xplot_boxplot
. See Details
List of options to pass to ggally_cors
. See Details
List of options to pass to ggally_statistic
. See Details
A list with use_rho
TRUE
or FALSE
. If TRUE
(default),
then the Spearman rho is displayed, else the ggpairs default count is used.
Plot title
Plot subtitle
Plot caption
Plot tag
Metadata name of plot
As in xpose
. This does not work reliably when changed from the default.
As in xpose
Processing options for fetched data
Silence extra debugging output
Show a progress bar as the plot is generated?
Passed to ggpairs
Ignored
There is only limited control over the underlying ggpairs()
call given
the need to address abstractions in GGally
and xpose
. However, users
can modify key display features. For scatter
, distribution
and boxplots
,
the type
option is directly forwarded to the user. For upper elements of the matrix,
users can modify features of the text displayed or supply some other
function entirely (other_fun
).
_opts
lists are consumed with <modifyList
> from the default,
so there is no need to declare preferences that align with the default if updating
a subset.