Skip to content

breaks = NULL drops axis altogether #2983

Closed
@ptoche

Description

@ptoche

Setting breaks = NULL, to remove axis tick marks and labels, results in the axis being dropped altogether. I don't remember seeing this before. Is this an intended feature?

library(reprex)

library(ggplot2)
ggplot(data = NULL, aes(x = c(-3, 3))) + 
    stat_function(fun = function(x) dnorm(x, 0, 1)) + 
    scale_x_continuous(breaks = NULL) +
    theme_classic() 

reprex() 
#> Rendering reprex...
#> Rendered reprex is on the clipboard.

Created on 2018-11-07 by the reprex package (v0.2.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions