eta_grid | R Documentation |
This is essentially a wrapper around ggpairs
,
except it uses xpose
motifs and styling. Note that this function
produces a lot of repetitive output if quiet=FALSE
; this may not
be an issue, but it could look like an error has occurred if many covariates
and individual parameter estimates are included.
eta_grid(
xpdb,
mapping = NULL,
etavar = NULL,
drop_fixed = TRUE,
title = "Eta correlations | @run",
subtitle = "Based on @nind individuals, Eta shrink: @etashk",
caption = "@dir",
tag = NULL,
pairs_opts,
.problem,
quiet,
...
)
cov_grid(
xpdb,
mapping = NULL,
cols = NULL,
covtypes = c("cont", "cat"),
show_n = TRUE,
drop_fixed = TRUE,
title = "Covariate relationships | @run",
subtitle = "Based on @nind individuals",
caption = "@dir",
tag = NULL,
pairs_opts,
.problem,
quiet,
...
)
eta_vs_cov_grid(
xpdb,
mapping = NULL,
etavar = NULL,
cols = NULL,
covtypes = c("cont", "cat"),
show_n = TRUE,
drop_fixed = TRUE,
title = "Eta covariate correlations | @run",
subtitle = "Based on @nind individuals, Eta shrink: @etashk",
caption = "@dir",
tag = NULL,
etacov = TRUE,
pairs_opts,
.problem,
quiet,
...
)
xpdb |
< |
mapping |
|
etavar |
|
drop_fixed |
As in |
title |
Plot title |
subtitle |
Plot subtitle |
caption |
Plot caption |
tag |
Plot tag |
pairs_opts |
List of arguments to pass to |
.problem |
Problem number |
quiet |
Silence extra debugging output |
... |
Passed to |
cols |
|
covtypes |
Subset to specific covariate type? |
show_n |
Count the number of |
etacov |
For |
xp_tras_plot
object
eta_grid(xpdb_x)
cov_grid(xpdb_x)
eta_vs_cov_grid(xpdb_x)
# Labels and units are also supported
xpdb_x %>%
xpose::set_var_labels(AGE="Age", MED1 = "Digoxin") %>%
xpose::set_var_units(AGE="yrs") %>%
set_var_levels(SEX=lvl_sex(), MED1 = lvl_bin()) %>%
eta_vs_cov_grid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.