Skip to content

eda_qtc_comparison_plot

Description

plots different corrections of QT against RR to compare which to use.

Usage

eda_qtc_comparison_plot(
data,
rr_col,
qt_col,
qtcb_col,
qtcf_col,
qtcp_col = NULL,
id_col = NULL,
trt_col = NULL,
xlabel = "RR (
ms
)",
legend = "",
legend_location = c(
"top",
"bottom",
"right",
"left"
),
model_type = c(
"lm",
"lme"
),
show_model_results = TRUE,
method = "REML",
remove_rr_iiv = FALSE,
conf_int = 0.9
)

Arguments

NameDescription
datadataframe containing QTc data
rr_colan unquoted column name of RR data
qt_colan unquoted column name of QT data
qtcb_colan unquoted column name of Bazett corrected QT data
qtcf_colan unquoted column name of Fridericia corrected QT data
qtcp_colOptional - an unquoted column name of Population corrected QT data
id_colan unquoted column name of ID data
trt_colOptional - an unquoted column name of treatment group data
xlabela string for xlabel
legenda string for legend label
legend_locationstring for legend location, top,bottom,left,right
model_typelm or lme, which model to fit for showing on plot
show_model_resultsa bool for showing regression slope on plot.
methodmethod for nlme::lme fitting
remove_rr_iiva boolean for removing IIV on RR slope
conf_intconfidence interval for lm results default 0.90

Returns

a plot

Examples

data <- preprocess(data)
eda_qtc_comparison_plot(
data,
RR,
QT,
QTCB,
QTCF,
id_col = ID,
trt_col = TRTG,
model_type = "lme",
show_model_results = TRUE,
remove_rr_iiv = TRUE,
legend_location = 'top')