Skip to content

MIssing axis when breaks = NULL #5816

@venpopov

Description

@venpopov

This is a repeat of #2983. When breaks = NULL in scale_*, the axis disappears altogether, although I expect the line to remain. #2983 was solved back then by #3257, but now the same incorrect behavior happens.

library(dplyr)
library(ggplot2)
data.frame(x = rnorm(100), y = rnorm(100)) %>% 
  ggplot(aes(x,y)) +
  geom_point() +
  scale_x_continuous(breaks = NULL) +
  theme_classic()

Created on 2024-03-29 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorguides 📏

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions