Skip to contents

Plots a single simulated interaction data set

Usage

plot_interaction(data, q = 3)

Arguments

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.

Value

A ggplot2 object

Examples

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)