strengejacke / sjPlot

sjPlot - Data Visualization for Statistics in Social Science

Home Page:https://strengejacke.github.io/sjPlot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Individual axis length with plot_models

AlanLaw opened this issue · comments

Hello, when plotting multiple model outputs using plot_models, is it possible to individually alter the y axis of each?
I know I can do it for the overall panels by using the + ylim(), but being able to do this for each plot would be great.

For example, using the dataset provided:
data(efc)
fit1 <- lm(barthtot ~ c160age + c12hour + c161sex + c172code, data = efc)
fit2 <- lm(neg_c_7 ~ c160age + c12hour + c161sex + c172code, data = efc)
fit3 <- lm(tot_sc_e ~ c160age + c12hour + c161sex + c172code, data = efc)

plot_models(fit1, fit2, fit3, grid = TRUE)

Could I plot an axis of -1:1 for plot 1, -4:1 for plot 2, and -4:5 for plot 3?

Thanks in advance!
Alan