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.


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:

Assistant Professor of Psychological and Behavioural Science

I’m a social psychologist interested in the development of perfectionism who also happens to enjoy R programming.