Skip to content

Replace geom_bar(stat = identity) with geom_col()#483

Merged
jgabry merged 2 commits intostan-dev:masterfrom
utkarshpawade:fix/use-geom-col-instead-of-geom-bar-stat-identity
Mar 16, 2026
Merged

Replace geom_bar(stat = identity) with geom_col()#483
jgabry merged 2 commits intostan-dev:masterfrom
utkarshpawade:fix/use-geom-col-instead-of-geom-bar-stat-identity

Conversation

@utkarshpawade
Copy link
Contributor

Fixes #482

Summary
•Replaced geom_bar(stat = "identity") with geom_col() in plot_scheme() (bayesplot-colors.R) and mcmc_acf() (mcmc-diagnostics.R)
•geom_col() is the documented modern equivalent and removes redundant arguments (stat = "identity", position = "identity")

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.66%. Comparing base (906cd5c) to head (de9127e).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
- Coverage   98.66%   98.66%   -0.01%     
==========================================
  Files          35       35              
  Lines        5860     5857       -3     
==========================================
- Hits         5782     5779       -3     
  Misses         78       78              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Thanks! Looks good, just one suggested edit to the NEWS file

@jgabry jgabry merged commit b98d1e3 into stan-dev:master Mar 16, 2026
6 checks passed
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.

Replace geom_bar(stat = "identity") with geom_col() for modern ggplot2 style

3 participants