eda_scatter_with_regressions.Rdplots scatter plot with with linear and loess regressions. Can be used to check for linearity.
eda_scatter_with_regressions(
data,
ydata_col,
xdata_col,
trt_col = NULL,
reference_threshold = NULL,
loess_line = TRUE,
linear_line = TRUE,
span = 0.99,
conf_int = 0.9,
style = list()
)A data frame containing C-QT analysis dataset
An unquoted column name for dependent variable measurements
An unquoted column name for independent variable measurements
An unquoted column name for treatment group
Optional vector of numbers to add as horizontal dashed lines
A bool to add LOESS regression line
A bool to add a linear regression line
A fractional value for LOESS span parameter in geom_smooth if LOESS is used, default 0.99
Numeric confidence interval level (default: 0.9)
A named list of arguments passed to style_plot(). Shapes are mapped to treatment groups and can be controlled via the shapes parameter in style
a plot
data_proc <- preprocess(cqtkit_data_verapamil)
eda_scatter_with_regressions(
data_proc,
deltaQTCF,
CONC,
TRTG,
reference_threshold = 10)