diff --git a/NEWS.md b/NEWS.md index 75d62cd8..472700ec 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ # bayesplot (development version) +* Fixed legend border artifact in `ppc_freqpoly()` and `ppc_freqpoly_grouped()`. * Fixed `validate_chain_list()` colnames check to compare all chains, not just the first two. * Added test verifying `legend_move("none")` behaves equivalently to `legend_none()`. * Added singleton-dimension edge-case tests for exported `_data()` functions. diff --git a/R/ppc-distributions.R b/R/ppc-distributions.R index 7ab9ffb8..8b988074 100644 --- a/R/ppc-distributions.R +++ b/R/ppc-distributions.R @@ -468,6 +468,7 @@ ppc_freqpoly <- ) + scale_fill_ppc() + scale_color_ppc() + + guides(fill = guide_legend(override.aes = list(color = NA))) + facet_wrap_parsed("rep_label") + bayesplot_theme_get() + force_axes_in_facets() + diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-alpha-binwidth-size.svg b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-alpha-binwidth-size.svg index 6b4bd675..6b46679f 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-alpha-binwidth-size.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-alpha-binwidth-size.svg @@ -172,9 +172,9 @@ - + - + y y r diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-default.svg b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-default.svg index aa45b98a..d99e44dd 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-default.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-default.svg @@ -160,9 +160,9 @@ - + - + y y r diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-grouped-default.svg b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-grouped-default.svg index aa820572..0ced8561 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-grouped-default.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-freqpoly-grouped-default.svg @@ -355,9 +355,9 @@ - + - + y y r