Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* New functions `mcmc_dots` and `mcmc_dots_by_chain` for dot plots of MCMC draws by @behramulukir (#402)
* Default to `quantiles=100` for all dot plots by @behramulukir (#402)
* Use `"neff_ratio"` consistently in diagnostic color scale helpers to avoid relying on partial matching of `"neff"`.
* Replace `geom_density_ridges(stat = "identity")` with `geom_ridgeline()` in `mcmc-intervals.R` and `mcmc-distributions.R` since density is pre-computed; also drop redundant `stat = "identity"` from `geom_ridgeline()` calls.

# bayesplot 1.15.0

Expand Down
3 changes: 1 addition & 2 deletions R/mcmc-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ mcmc_dens_chains <- function(
group = interaction(.data$chain, .data$parameter)
) +
geom_line(data = line_training) +
ggridges::geom_density_ridges(
ggridges::geom_ridgeline(
aes(height = .data$density),
stat = "identity",
fill = NA,
show.legend = FALSE
) +
Expand Down
3 changes: 1 addition & 2 deletions R/mcmc-intervals.R
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,7 @@ mcmc_areas_ridges <- function(x,
args_inner <- list(
mapping = aes(height = .data$density, color = .data$color, fill = .data$fill),
data = dplyr::bind_rows(this_par_data, next_par_data),
scale = scale,
stat = "identity")
scale = scale)

if (!is.null(border_size)) {
args_inner$linewidth <- border_size
Expand Down
182 changes: 91 additions & 91 deletions tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
234 changes: 117 additions & 117 deletions tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-binwidth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
288 changes: 144 additions & 144 deletions tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-hist-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 61 additions & 61 deletions tests/testthat/_snaps/mcmc-diagnostics/mcmc-neff-missing-levels.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/mcmc-nuts/mcmc-nuts-energy-merged.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions tests/testthat/_snaps/ppc-test-statistics/ppd-stat-2d-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions tests/testthat/_snaps/ppc-test-statistics/ppd-stat-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading