# NOT RUN {
data(efc)
# fit model
fit <- lm(tot_sc_e ~ c12hour + e17age + e42dep + neg_c_7, data = efc)
# plot marginal effects for each predictor, each as single plot
p <- sjp.lm(fit, type = "eff", facet.grid = FALSE, prnt.plot = FALSE)
# plot grid
plot_grid(p$plot.list)
# or
plot_grid(p)
# }
Run the code above in your browser using DataLab