Skip to content

Remove binwidth entirely from geom_bar() #3819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

clauswilke
Copy link
Member

Closes #3809.

library(ggplot2)

ggplot(iris, aes(x = Sepal.Length)) +
  geom_bar(stat = "bin", binwidth = 0.1)

ggplot(mtcars, aes(factor(gear))) +
  geom_bar(binwidth = 0.1)
#> Warning: Ignoring unknown parameters: binwidth

Created on 2020-02-11 by the reprex package (v0.3.0)

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@clauswilke clauswilke merged commit b434351 into tidyverse:master Feb 12, 2020
@clauswilke clauswilke deleted the issue-3809-geom_bar branch February 12, 2020 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning about binwidth given with geom_bar and stat = bin
2 participants