-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sjp.int linetype only in legend, not in graph #258
Comments
If you use Do you want coloured geoms and different line types? |
There is a workaround, by using the returned plot object.
|
This works perfectly, thanks! |
How to solve the same problem, if using plot_model? I am using the following code and hope to have line dashed/solided across different levels. I did not find a proper solution!
|
Sorry, wrong code -
|
Either use ggeffects library(ggeffects)
data(efc)
fit <- lm(neg_c_7 ~ c12hour * barthtot, data = efc)
ggpredict(fit, terms = c("c12hour", "barthtot")) %>% plot(colors = "bw") or plot_model(fit, type = "pred", terms = c("c12hour", "barthtot"), colors = "bw")
plot_model(fit, type = "eff", terms = c("c12hour", "barthtot"), colors = "bw") For |
Should work now with the latest commit to GitHub. |
I am trying to change the linetype of an interaction plot (with a factor and a continuous predictor) into a solid line and a dashed line by changing the linetype in sjp.setTheme():
sjp.setTheme(panel.bordercol = "white",axis.linecolor = "black",panel.gridcol="white",geom.linetype = c(1,3),base=theme_bw())
sjp.int(m10b,type="eff",int.term = "multiplication_factor:pleasantness",show.ci = TRUE)
However the linetype only changes in my legend, and not in the plot itself. Any idea why that is the case?
The text was updated successfully, but these errors were encountered: