Skip to content

eda_hysteresis_loop_plot

Description

Hysteresis loop plot to visually inspect hysteresis

Usage

eda_hysteresis_loop_plot(
data,
ntime_col,
deltaqtc_col,
conc_col,
dosef_col,
group_col = NULL,
reference_dose = NULL,
show_hysteresis_warning = TRUE,
style = list(
)
)

Arguments

NameDescription
dataa dataframe of QTc dataset
ntime_colan unquoted column name of nominal time points
deltaqtc_colan unquoted column name of dQTC measurements at the time points in NTLD
conc_colan unquoted column name of drug concentrations at each NTLD
dosef_colan unquoted column name of DOSE factors.
group_colan unquoted column name of additional grouping column
reference_doseOptional - DOSE of reference (i.e. placebo, DOSE == 0) measurements
show_hysteresis_warningboolean, if TRUE adds Hysteresis Detected to facet wrap label for groups with hysteresis detected
stylea named list of any argument that can be passed to style_plot

Returns

a plot

Examples

data <- preprocess(data)
eda_hysteresis_loop_plot(
data,
NTLD,
deltaQTCF,
CONC,
DOSEF,
reference_dose = "0 mg",
style = set_style(
ylabel = bquote(Delta~Delta~"QTcF (ms)")
)
)