draw_interaction_plot {sherlock} | R Documentation |
Draw Interaction Plot
Description
Draws an Interaction Plot
Usage
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
)
Arguments
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) |
Value
A 'ggplot' object
[Package sherlock version 0.7.0 Index]