Draws an Interaction Plot
draw_interaction_plot(
data,
y_var,
x_var_1_levels,
x_var_2_levels,
point_size = 4,
line_size = 1,
alpha = 0.5,
analysis_desc_label = NULL
)
A 'ggplot' object
input dataset to be plotted (required)
Y variable to be plotted on Y axis (required)
First grouping variable levels, e.g. -1/1 or "low"/"high" (required)
Second grouping variable levels, e.g. -1/1 or "low"/"high" (required)
Set point size. By default, it is set to 4 (optional)
Set line size. By default, it is set to 1 (optional)
Set transparency. By default, it is set to 0.5 (optional)
analysis_desc_label Label (subtitle) for analysis description. By default, it is set to NULL (optional)