Skip to content

eda_mean_dv_over_time

Description

Plots mean dependent variable over time

Usage

eda_mean_dv_over_time(
data,
dv_col,
ntime_col,
dosef_col,
secondary_data_col = NULL,
group_col = NULL,
reference_dose = NULL,
reference_threshold = NULL,
conf_int = 0.9,
scale_factor = NULL,
error_bars = "CI",
title = "",
ylabel = bquote(
"Mean " ~ Delta ~ "QTc (
ms
)"
),
sec_ylabel = "Concentration (
ng/mL
)",
logx = FALSE,
legend = ""
)

Arguments

NameDescription
datadataframe containing QTc dataset
dv_colan unquoted column name of dependent variable
ntime_colan unquoted column name of nominal Time grouping
dosef_colan unquoted column name of Dose grouping
secondary_data_coloptional unquoted column name to overlay on secondary y-axis
group_colan unquoted column name of additional grouping column
reference_doseOptional - DOSE of reference (i.e. placebo, DOSE == 0) measurements
reference_thresholdOptional - a numeric or vector of numerics to add dashed lines to plot
conf_intfractional confidence interval, default = 0.9
scale_factoroptional scale factor for secondary_data_col
error_barsa string for setting which errorbars are shown, CI, SE, SD
titlea string to title the plot
ylabela string for ylabel default is bquote(‘Mean ’ Delta’QTc (ms)‘)
sec_ylabela string for secondary ylabel, default is Concentration (ng/mL)
logxa bool for applying log transform to x axis
legenda string for legend label

Returns

a plot

Examples

data <- preprocess(data)
eda_mean_dv_over_time(
data,
deltaQTCF,
NTLD,
DOSEF,
group_col = TRTG,
reference_dose = "0 mg",
reference_threshold = 10,
ylabel = bquote('Mean '~Delta~Delta~'QTc (ms)'))