Skip to content

geom_sf(): add support for scale_x_continuous(n.breaks = ) #4622

Closed
@pat-s

Description

@pat-s

Currently this argument does not have an effect when using geom_sf().

library("ggplot2")
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
ggplot(nc) +
  geom_sf(aes(fill = AREA)) +
  scale_x_continuous(n.breaks = 2)

Created on 2021-09-18 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorcoord 🗺️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions