Open Dotfalco opened 3 years ago
If you have four "terms", plots are arranged using gridExtra::grid.arrange()
, which is no longer a ggplot2
object.
Hi, would it be possible to arrange the plots via patchwork https://patchwork.data-imaginist.com/ this might allow more flexibility https://patchwork.data-imaginist.com/articles/guides/assembly.html#modifying-patches-1
So when I do this command:
plot_model(m2, type = "pred", terms = c("trial_s [all]", "lambda [0, .25, .5]", "beta [2, 5, 8]", "expcond"), colors = c("#3182bd", "#c51b8a", "#5ab4ac"), title = "NEW") Error in p + ggtitle(title) : non-numeric argument to binary operator
but if I modify it to:
plot_model(m2, type = "eff", terms = c("trial_s [all]", "lambda [0, .25, .5]", "beta [2, 5, 8]", "expcond"), colors = c("#3182bd", "#c51b8a", "#5ab4ac"), title = "NEW")
I get no errors and the title becomes "NEW". I also have other lab members that don't have any issues with the "pred" type and can make modifications.
Here is my Version (but I also tried this on 3.6.1 with no success):