cwres_covariate | R Documentation |
Get a single graphic of CWRES
versus continuous and / or categorical
covariates (cwres_covariate()
) or get a list that can be arranged by
the user (cwres_covariate_list()
). See cwres_panel()
for other CWRES
diagnostic displays.
cwres_covariate(df, x, ncol = 2, tag_levels = NULL, byrow = NULL)
cwres_covariate_list(df, x)
df |
a data frame to plot. |
x |
character |
ncol |
passed to |
tag_levels |
passed to |
byrow |
passed to |
Pass ncol = NULL
or another non-numeric value to bypass arranging plots
coming from cwres_covariate()
.
cwres_covariate()
returns single graphic of scatter plot diagnostics
as a patchwork
object that has been arranged using pm_grid()
and
cwres_covariate_list()
returns the same component plots unarranged in a
list.
npde_covariate()
, eta_covariate()
data <- pmplots_data_id()
cont <- c("WT//Weight (kg)", "ALB//Albumin (mg/dL)")
cats <- c("RF//Renal function", "CPc//Child-Pugh")
cwres_covariate(data, x = c(cont, cats), tag_levels = "A")
cwres_covariate_list(data, x = cont)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.