Closed 5tokesy closed 1 month ago
I thought it would be good if effect_plot()
could do this out of the box, so I've added a facet.by
argument to implement basically what you're looking for. It should work on the current development version of jtools
and I expect the update to be on CRAN within a week or so.
I’ve created a model using the glmmTMB package which produces acceptable results. My model uses several years of data. The years are included as a random intercept.
I have plotted the model using jtools. I’m happy with the combined year plot. Next, I want to plot the individual years using GGPLOT’s facet_wrap function.
I've tried a few variations on the following code:
I've also tried using '+ facet_wrap(~year, ncol = 2)' but it produces the same plot given in my example code.
Thanks for any suggestions.