Skip to content

gof_residuals_time_boxplots

Description

plots boxplots of residuals over Nominal Times

Usage

gof_residuals_time_boxplots(
data,
fit,
dv_col,
conc_col,
ntime_col,
trt_col = NULL,
title = "",
legend_location = c(
"top",
"bottom",
"left",
"right",
"none"
),
legend_title = "Treatment Group"
)

Arguments

NameDescription
dataA dataframe of QTc dataset
fita deltaQTCF model fit
dv_colan unquoted column name of deltaQTC/Dependent variable measurements
conc_colan unquoted column name of concentration measurements
ntime_colan unquoted column name of nominal times
trt_colan unquoted column name of treatment group, default NULL will use for filling boxplots
titlea string of title of plot
legend_locationlocation of legend ggpubr::ggarrange argument
legend_titlestring for setting the legend title if trt_col is provided, default is Treatment Group

Returns

a plot

Examples

data <- preprocess(data)
fit <- fit_prespecified_model(
data,
deltaQTCF,
ID,
CONC,
deltaQTCFBL,
TRTG,
TAFD,
"REML",
TRUE
)
gof_residuals_time_boxplots(
data,
fit,
deltaQTCF,
CONC,
NTLD,
TRTG,
legend_location = "top")