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,
shift_factor = NULL,
error_bars = "CI",
sec_ylabel = "Concentration (
ng/mL
)",
style = list(
)
)

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 scaling secondary_data_col
shift_factoroptional additive factory for shifting secondary data
error_barsa string for setting which errorbars are shown, CI, SE, SD
sec_ylabela string for secondary ylabel, default is Concentration (ng/mL)
stylea named list of any argument that can be passed to style_plots. Shapes are mapped to grouping variables and can be controlled via the shapes parameter in style

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,
style = set_style(ylabel = bquote('Mean '~Delta~Delta~'QTc (ms)')))