Skip to content
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

clarifying docs on how to further modify plots from binned_residuals #91

Open
IndrajeetPatil opened this issue Mar 8, 2021 · 1 comment

Comments

@IndrajeetPatil
Copy link
Member

The doc states:

Screenshot 2021-03-08 at 20 37 15

But this does not work.

plot

library(performance)
library(see)

# creating a model
model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial")

# doing what docs say
plot(binned_residuals(model)) + see::scale_color_pizza()
#> Warning: Probably bad model fit. Only about 50% of the residuals are inside the error bounds.

#> NULL

Created on 2021-03-08 by the reprex package (v1.0.0)

print

library(performance)
library(see)

# creating a model
model <- glm(vs ~ wt + mpg, data = mtcars, family = "binomial")

# doing what docs say
print(binned_residuals(model)) + see::scale_color_pizza()
#> Warning: Probably bad model fit. Only about 50% of the residuals are inside the error bounds.
#> Warning: Incompatible methods ("Ops.data.frame", "+.gg") for "+"
#> Error in print(binned_residuals(model)) + see::scale_color_pizza(): non-numeric argument to binary operator

Created on 2021-03-08 by the reprex package (v1.0.0)

@DominiqueMakowski
Copy link
Member

I think this is @strengejacke's implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants