Skip to content
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

add 'bins' argument to many histogram plots #300

Merged
merged 2 commits into from Mar 16, 2023
Merged

add 'bins' argument to many histogram plots #300

merged 2 commits into from Mar 16, 2023

Conversation

paul-buerkner
Copy link
Collaborator

This PR adds the bins argument to a lot of histogram plots. So far, you could only customize the histogram bins via binwidth and breaks, but the often most simple and convenient option to just specify the number of bins via the bins argument of ggplot2::geom_histogram was missing so far. This PR resolves this issue.

@jgabry
Copy link
Member

jgabry commented Mar 16, 2023

Thanks @paul-buerkner! Looks good. I'll see what's up with the failing checks

@jgabry
Copy link
Member

jgabry commented Mar 16, 2023

I think the problem is that the most recent ggplot2 release fixed a bug in geom_hex that affects a few of our visual tests. I just updated the SVG files for the tests and hopefully the checks will pass now.

Copy link
Member

@jgabry jgabry left a comment

Choose a reason for hiding this comment

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

Will merge if the checks pass now

@jgabry jgabry merged commit bf145fc into master Mar 16, 2023
6 checks passed
@jgabry jgabry deleted the hist-bins branch March 16, 2023 20:19
@paul-buerkner
Copy link
Collaborator Author

Thank you!

heavywatal added a commit to heavywatal/bayesplot that referenced this pull request Jan 18, 2024
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.

None yet

2 participants