Skip to content

eda_qt_rr_plot

Description

Plot QT against RR

Usage

eda_qt_rr_plot(
data,
rr_col,
qt_col,
id_col = NULL,
trt_col = NULL,
title = "",
xlabel = "RR (
ms
)",
ylabel = "QT (
ms
)",
legend = "",
conf_int = 0.9,
model_type = c(
"lm",
"lme"
),
show_model_results = TRUE,
method = "REML",
remove_rr_iiv = FALSE
)

Arguments

NameDescription
datadataframe containing QT dataset
rr_colan unquoted column name of RR data
qt_colan unquoted column name of QT data
id_colan unquoted column name of ID data
trt_colan unquoted column name of Treatment group data
titlea string to add a plot title
xlabela string for xlabel
ylabela string for ylabel
legenda string for legend label
conf_intconfidence interval for lm regression coefficients, default 0.90
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

Returns

a plot of the input QT against RR

Examples

data <- preprocess(data)
eda_qt_rr_plot(data, RR, QT, show_model_results = FALSE)