Gets labeller for hysteresis_loop_plot. Should most likely not be used by user

compute_hysteresis_labeller(
  data,
  ntime_col,
  deltaqtc_col,
  conc_col,
  dosef_col,
  group_col = NULL
)

Arguments

data

A data frame containing C-QT analysis dataset

ntime_col

An unquoted column name for Nominal time since last dose (h)

deltaqtc_col

An unquoted column name for dQTC measurements (ms)

conc_col

An unquoted column name for CONC measurements (units)

dosef_col

An unquoted column name for doses as factor

group_col

An unquoted column name for additional grouping variable.

Value

list with compute_potential_hysteresis results for each dose.

Examples

data_proc <- preprocess(cqtkit_data_verapamil)
data_proc <- dplyr::mutate(data_proc, DOSEF = as.factor(DOSEF))

compute_hysteresis_labeller(
  data_proc,
  NTLD,
  deltaQTCF,
  CONC,
  DOSEF)
#> Warning: Multiple times have max CONC - first time is used
#> function (variable, dose) 
#> {
#>     return(hysteresis)
#> }
#> <bytecode: 0x555ef0cf3070>
#> <environment: 0x555ef0cf2b30>