Skip to content

eda_quantiles_plot

Description

plots the observed decile-decile scatter plot of XDATA vs YDATA with linear regression.

Usage

eda_quantiles_plot(
data,
xdata_col,
ydata_col,
trt_col = NULL,
conf_int = 0.9,
error_bars = "CI",
ylims = NULL,
xlabel = NULL,
ylabel = NULL,
legend = NULL
)

Arguments

NameDescription
dataa dataframe of QTc dataset
xdata_colan unquoted column name of x data
ydata_colan unquoted column name of y data
trt_colan unquoted column name of treatment column to stratify the data by
conf_inta fractional value to set confidence interval, default = 0.9
error_barsa string for setting which errorbars are shown, CI, SE, SD
ylimsoptional - vector of lower and upper y limits
xlabelstring for xlabel on plot
ylabelstring for ylabel on plot
legendstring for legend label if treatment_col is supplied.

Returns

a plot

Examples

data <- preprocess(data)
eda_quantiles_plot(
data,
RR,
QTCF,
ylims = c(300, 500),
xlabel = "RR (ms)",
ylabel = "QTcF (ms)",
trt_col = TRTG,
legend = "Treatment Group",
) +
ggplot2::theme(legend.position = "top")