Johnson Neyman Plotting Tool for Conditional Effects
The function modplot() takes an lm object with X*M and plots conditional effects through range of M. This mimics PROCESS but uses ggplot to visualise.
Usage:
modplot(lm, predictor = “X”, moderator = “M”, alpha = .05, jn = T) + [any ggplot layers]
if jn = F, vertical lines demarcating the region(s) of significance will not be drawn.
Avaliable here: https://github.com/thomcurran/PB130/blob/master/Packages/modplot_0.1.0.tar.gz