Skip to content

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

Closed

Description

@smouksassi

As reported in this discussion and reprex:

#3398 (comment)

Opening a new issue to keep track of it.

Activity

  1. added this to the ggplot2 3.3.0 milestone on Oct 7, 2019
  2. paleolimbot commented on Oct 7, 2019

    @paleolimbot
    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.

  3. lock commented on May 20, 2020

    @lock

    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/

  4. lock commented on May 20, 2020

    @lock

    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/

  5. locked and limited conversation to collaborators on May 20, 2020
  6. added a commit that references this issue on Aug 14, 2024
    86cc4d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions