Skip to content

Commit a4c5a88

Browse files
authored
Merge pull request #341 from stan-dev/prep-v1.12.0
Prepare v1.12.0 for release
2 parents af99454 + ad1a922 commit a4c5a88

22 files changed

+83
-46
lines changed

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: bayesplot
22
Type: Package
33
Title: Plotting for Bayesian Models
4-
Version: 1.11.1.9000
5-
Date: 2024-02-14
4+
Version: 1.12.0
5+
Date: 2025-04-09
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"), email = "jsg2201@columbia.edu"),
77
person("Tristan", "Mahr", role = "aut"),
88
person("Paul-Christian", "Bürkner", role = "ctb"),
@@ -37,6 +37,7 @@ Imports:
3737
rlang (>= 0.3.0),
3838
stats,
3939
tibble (>= 2.0.0),
40+
tidyr,
4041
tidyselect,
4142
utils
4243
Suggests:
@@ -55,7 +56,7 @@ Suggests:
5556
survival,
5657
testthat (>= 2.0.0),
5758
vdiffr (>= 1.0.2)
58-
RoxygenNote: 7.3.1
59+
RoxygenNote: 7.3.2
5960
VignetteBuilder: knitr
6061
Encoding: UTF-8
6162
Roxygen: list(markdown = TRUE)

NEWS.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
# bayesplot 1.11.1.9000
1+
# bayesplot 1.12.0
2+
3+
* Expand checking workflows to more platforms by @andrjohns (#324)
4+
* Skip tests depending on Suggested dependency rstantools if not installed by @MichaelChirico (#325)
5+
* Skip tests depending on Suggested dependency gridExtra if not installed by @MichaelChirico (#326)
6+
* Fix missing legends for unobserved levels in rhat and neff plots (#328)
7+
* Document problems with `ppc_stat` with `stat="mean"` (#329)
8+
* Ensure rank overlay plot starts at 0 even if not all bins present, thanks @sims1253 (#332)
9+
* Compatibility with ggplot2 3.6.0 by @teunbrand (#337)
10+
* Update GitHub actions workflows (#338)
11+
* Remove deprecated functions from `available_ppc()` (#340)
12+
* Fix missing counts in `ppc_bars_data()` by @TeemuSailynoja, thanks @famuvie (#342)
213

3-
Items for next release go here
414

515
# bayesplot 1.11.1
616

R/mcmc-overview.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#' an additional column `"Chain"` that contains the chain number (an integer)
2727
#' corresponding to each row in the data frame.
2828
#' * __draws__: Any of the `draws` formats supported by the
29-
#' \pkg{\link{posterior}} package.
29+
#' \pkg{posterior} package.
3030
#'
3131
#' __Note__: typically the user should *not* include warmup iterations
3232
#' in the object passed to **bayesplot** plotting functions, although for

R/mcmc-scatterplots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ mcmc_hex <- function(x,
212212
#' `alpha`.
213213
#' @param grid_args,save_gg_objects For `mcmc_pairs()`, arguments to pass to
214214
#' [bayesplot_grid()]. For example, since `mcmc_pairs()` returns
215-
#' more than a single ggplot object, using [ggtitle()] afterwards
215+
#' more than a single ggplot object, using `ggtitle()` afterwards
216216
#' will not work. But you you can still add a title to the plot using
217217
#' `grid_args = list(top="My title")`.
218218
#'

R/ppc-discrete.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ ppc_bars_data <-
395395
data <-
396396
reshape2::melt(tmp_data, id.vars = "group") %>%
397397
count(.data$group, .data$value, .data$variable) %>%
398+
tidyr::complete(.data$group, .data$value, .data$variable, fill = list(n = 0)) %>%
398399
group_by(.data$variable, .data$group) %>%
399400
mutate(proportion = .data$n / sum(.data$n)) %>%
400401
ungroup() %>%

man-roxygen/args-mcmc-x.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' @param x An object containing MCMC draws:
22
#' * A 3-D array, matrix, list of matrices, or data frame. The [MCMC-overview]
33
#' page provides details on how to specify each these.
4-
#' * A `draws` object from the \pkg{\link{posterior}} package (e.g.,
4+
#' * A `draws` object from the \pkg{posterior} package (e.g.,
55
#' `draws_array`, `draws_rvars`, etc.).
66
#' * An object with an `as.array()` method that returns the same kind of 3-D
77
#' array described on the [MCMC-overview] page.

man/MCMC-combos.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-diagnostics.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-distributions.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-intervals.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-overview.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-parcoord.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-recover.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-scatterplots.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/MCMC-traces.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/_snaps/ppc-discrete/ppc-bars-default.svg

Lines changed: 6 additions & 3 deletions
Loading

tests/testthat/_snaps/ppc-discrete/ppc-bars-grouped-default.svg

Lines changed: 15 additions & 7 deletions
Loading

0 commit comments

Comments
 (0)