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

Error in cal_plot_breaks() #130

Closed
zjsty opened this issue Dec 23, 2023 · 3 comments
Closed

Error in cal_plot_breaks() #130

zjsty opened this issue Dec 23, 2023 · 3 comments

Comments

@zjsty
Copy link

zjsty commented Dec 23, 2023

Dear professor,
I come with a problem when I run the example (https://www.tidyverse.org/blog/2022/11/model-calibration/#model-calibration)
the picture was followed. How up debug?
image
Thanks.

@zjsty
Copy link
Author

zjsty commented Dec 23, 2023

image the problem again.

@topepo
Copy link
Member

topepo commented Feb 20, 2024

Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you!

If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down that page.

@topepo
Copy link
Member

topepo commented Feb 22, 2024

The API has changed since that post We'll update it.

The error message has the solution:

✖ This function does not work with grouped data frames.
ℹ Apply dplyr::ungroup() and use the .by argument.

so use

combined %>%
    cal_plot_breaks(Class, .pred_good, .by = c(source))

@topepo topepo closed this as completed Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants