Skip to content

No way to specify number of bins in stat_density_2d  #1448

Closed
@ecoRoland

Description

@ecoRoland

stat_density2d used to pass the ellipses to stat_contour. That way one could specify the number of bins.

Pre-v2.0.0:

m <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
  geom_point() +
  xlim(0.5, 6) +
  ylim(40, 110)
m + geom_density2d(bins = 3)

Since stat_density_2d doesn't do that anymore, I don't see a way to specify the number of bins. If I'm not missing something that seems like a regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions