-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improved q-q plot error bands #299
Conversation
@strengejacke Should we change the default plot type to |
I think we had a reason to default to |
- Make titles for p-p plots parallel to those for q-q plots - Change default to `type = "qq"` - Add details for the `type` argument to documentation (and add similar details for functions that previously imported the `type` argument from `plot.see_check_normality`
I changed the default to I'll open a similar PR in performance. I'm good with the PR now. Ready to merge? |
Also change default to `verbose = FALSE`
Yes, I think so. Not sure there is anything to update in performance though. |
Actually, we can also detrend without qqplotr. I'll make a commit. |
Okay, detrend now works without qqplotr: m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- performance::check_normality(m)
plot(result)
#> For confidence bands, please install `qqplotr`. Created on 2023-07-23 with reprex v2.0.2 (And also with) m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- performance::check_normality(m)
plot(result) Created on 2023-07-23 with reprex v2.0.2 |
Perfect! Can you change the PR on performance linked above to have detrend = TRUE on check_model? |
Done! |
Can this be merged? |
Yep |
hm, this code line ggplot2::aes(y = ggplot2::after_stat("sample") - ggplot2::after_stat("theoretical")) worked on one computer, but not on the other one and tests also fail. The line was ggplot2::aes(y = ggplot2::after_stat(sample) - ggplot2::after_stat(theoretical)) (i.e. no quotes), but this gave the "undefined global vars" issue. Any idea how to handle this? |
I think we do already, but if not, we also need to import |
I think we can't use the data pronoun here, because |
They aren't functions, they are columns of the data frame returned after by stat function. The |
Closes easystats/performance#599
@bwiernik Should this be the new default qq/pp-band method?
Note that currently the default plot is a density plot.... I would rather it be a qq-plot, don't you think?
Old qq-plot
qq-plots with the new
"ell"
defaultpp-plots with the new
"ell"
defaultCreated on 2023-07-20 with reprex v2.0.2