Skip to content

add 'bins' argument to many histogram plots - #300

Merged
jgabry merged 2 commits into
masterfrom
hist-bins
Mar 16, 2023
Merged

jgabry merged 2 commits into
masterfrom
hist-bins

Conversation

@paul-buerkner

Copy link
Copy Markdown
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.

@paul-buerkner
paul-buerkner requested a review from jgabry March 16, 2023 12:13
@jgabry

jgabry commented Mar 16, 2023

Copy link
Copy Markdown
Member

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

@jgabry

jgabry commented Mar 16, 2023

Copy link
Copy Markdown
Member

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.

@jgabry jgabry left a comment

Copy link
Copy Markdown
Member

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
@jgabry
jgabry deleted the hist-bins branch March 16, 2023 20:19
@paul-buerkner

Copy link
Copy Markdown
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.

2 participants