View source: R/plot_interaction.R
plot_interaction | R Documentation |
Plots a single simulated interaction data set
plot_interaction(data, q = 3)
data |
Output of generate_interaction(). |
q |
Simple slope quantiles. Default is 2. X2 is the default moderator, unless X1 is already binary. Must be a positive integer > 1. |
A ggplot2 object
dataset <- generate_interaction(N = 250,r.x1.y = 0,r.x2.y = .1,r.x1x2.y = -.2,r.x1.x2 = .3)
plot_interaction(dataset,q=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.