-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
cannot apply check_model title with patchwork::plot_annotation #712
Comments
library(easystats)
library(patchwork)
m <- lm(mpg ~ factor(cyl) + disp + hp, data = mtcars)
pp <- check_model(m)
x <- plot(pp)
plots(x, n_columns = 2) + plot_annotation(title = 'mtcars model') Created on 2024-04-17 with reprex v2.1.0 |
@strengejacke i had thought plot() returned the patchwork object. Did we change that at some point? I don't seem much value in retuning a list vs the final thing that is shown by default--should we change it? |
Maybe we can just add an |
Yes I am fairly sure that |
I recently tried to run some code from 2022 again, where I applied a title to a check_model() plot using patchwork::plot_annotation(). It returns an error which I've unsuccessfully tried to debug. This reprex should be equivalent to the code I'm trying to run. Thanks very much for your help!
Reprex:
Error:
Other potentially useful info:
Session info:
The text was updated successfully, but these errors were encountered: