View source: R/draw_interaction_plot.R
draw_interaction_plot | R Documentation |
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
)
data |
input dataset to be plotted (required) |
y_var |
Y variable to be plotted on Y axis (required) |
x_var_1_levels |
First grouping variable levels, e.g. -1/1 or "low"/"high" (required) |
x_var_2_levels |
Second grouping variable levels, e.g. -1/1 or "low"/"high" (required) |
point_size |
Set point size. By default, it is set to 4 (optional) |
line_size |
Set line size. By default, it is set to 1 (optional) |
alpha |
Set transparency. By default, it is set to 0.5 (optional) |
analysis_desc_label |
analysis_desc_label Label (subtitle) for analysis description. By default, it is set to NULL (optional) |
A 'ggplot' object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.