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

cal_plot() #20

Open
MahdiSafarpour opened this issue Nov 25, 2021 · 2 comments
Open

cal_plot() #20

MahdiSafarpour opened this issue Nov 25, 2021 · 2 comments

Comments

@MahdiSafarpour
Copy link

When I run cal_plot() even on your toy data, I get two warning messages:

1: Ignoring unknown aesthetics: ymin, ymax
2: Removed 2 rows containing missing values (geom_bar).

Is there any solution for this issue?

@vikjam
Copy link

vikjam commented Feb 26, 2022

Seems like 1: Ignoring unknown aesthetics: ymin, ymax comes from the following line:

ggplot2::geom_point(ggplot2::aes(x = bin_pred, y = bin_prob, ymin = ll, ymax = ul),

I don't think runway needs to use ymin and ymax in ggplot2::geom_point.

The second warning 2: Removed 2 rows containing missing values (geom_bar) comes from:

ggplot2::scale_x_continuous(limits = c(0, 1), breaks = seq(0, 1, by = 0.1)) +

The ggplot2 team doesn't seem to be concerned about this warning when using ggplot2::scale_x_continuous with ggplot2::geom_histogram. I think runway could do without the limits argument in the aforementioned line.

@kdpsingh
Copy link
Contributor

Thank you for noting these issues. We will be making several updates to the runway package in the next ~3 weeks to enhance the functionality and correct some bugs. We will plan to fix this issue.

I'm going to leave this issue open for now until we institute a fix.

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

3 participants