Skip to content

Regression: labels and breaks are not the same length #3558

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

Closed
smouksassi opened this issue Oct 7, 2019 · 3 comments
Closed

Regression: labels and breaks are not the same length #3558

smouksassi opened this issue Oct 7, 2019 · 3 comments
Milestone

Comments

@smouksassi
Copy link

As reported in this discussion and reprex:

#3398 (comment)

Opening a new issue to keep track of it.

@clauswilke clauswilke added this to the ggplot2 3.3.0 milestone Oct 7, 2019
@paleolimbot
Copy link
Member

Thanks @smouksassi - this was identified in a number of reverse dependency failures as @thomasp85 mentioned. I'm using this as my reprex:

library(ggplot2)
ggplot(mpg, aes(cty, hwy)) +
  geom_point() +
  scale_x_continuous(
    breaks = c(0, 20, 40),
    labels = c("0", "20", "40")
  )
#> Error: Breaks and labels are different lengths

I changed how breaks were "censored" by the scales by accident. I think the solution is to move the censoring to guide_train() rather than have the scales do it, but there might be something easier. I'm happy to fix this, but it will take a few days.

@lock
Copy link

lock bot commented May 20, 2020

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

1 similar comment
@lock
Copy link

lock bot commented May 20, 2020

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants