Skip to content
Merged
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
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: bayesplot
Type: Package
Title: Plotting for Bayesian Models
Version: 1.10.0.9000
Date: 2022-11-16
Version: 1.10.0.9001
Date: 2023-03-16
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"), email = "jsg2201@columbia.edu"),
person("Tristan", "Mahr", role = "aut"),
person("Paul-Christian", "Bürkner", role = "ctb"),
Expand Down Expand Up @@ -55,7 +55,7 @@ Suggests:
survival,
testthat (>= 2.0.0),
vdiffr (>= 1.0.2)
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
VignetteBuilder: knitr
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
6 changes: 4 additions & 2 deletions R/mcmc-diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ mcmc_rhat <- function(rhat, ..., size = NULL) {

#' @rdname MCMC-diagnostics
#' @export
mcmc_rhat_hist <- function(rhat, ..., binwidth = NULL, breaks = NULL) {
mcmc_rhat_hist <- function(rhat, ..., binwidth = NULL, bins = NULL, breaks = NULL) {
check_ignored_arguments(...)
data <- mcmc_rhat_data(rhat)

Expand All @@ -185,6 +185,7 @@ mcmc_rhat_hist <- function(rhat, ..., binwidth = NULL, breaks = NULL) {
linewidth = 0.25,
na.rm = TRUE,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
scale_color_diagnostic("rhat") +
Expand Down Expand Up @@ -261,7 +262,7 @@ mcmc_neff <- function(ratio, ..., size = NULL) {

#' @rdname MCMC-diagnostics
#' @export
mcmc_neff_hist <- function(ratio, ..., binwidth = NULL, breaks = NULL) {
mcmc_neff_hist <- function(ratio, ..., binwidth = NULL, bins = NULL, breaks = NULL) {
check_ignored_arguments(...)
data <- mcmc_neff_data(ratio)

Expand All @@ -275,6 +276,7 @@ mcmc_neff_hist <- function(ratio, ..., binwidth = NULL, breaks = NULL) {
linewidth = 0.25,
na.rm = TRUE,
binwidth = binwidth,
bins = bins,
breaks = breaks) +
scale_color_diagnostic("neff") +
scale_fill_diagnostic("neff") +
Expand Down
6 changes: 6 additions & 0 deletions R/mcmc-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ mcmc_hist <- function(
...,
facet_args = list(),
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE,
alpha = 1
Expand All @@ -127,6 +128,7 @@ mcmc_hist <- function(
transformations = transformations,
facet_args = facet_args,
binwidth = binwidth,
bins = bins,
breaks = breaks,
by_chain = FALSE,
freq = freq,
Expand Down Expand Up @@ -180,6 +182,7 @@ mcmc_hist_by_chain <- function(
...,
facet_args = list(),
binwidth = NULL,
bins = NULL,
freq = TRUE,
alpha = 1
) {
Expand All @@ -191,6 +194,7 @@ mcmc_hist_by_chain <- function(
transformations = transformations,
facet_args = facet_args,
binwidth = binwidth,
bins = bins,
by_chain = TRUE,
freq = freq,
alpha = alpha,
Expand Down Expand Up @@ -369,6 +373,7 @@ mcmc_violin <- function(
transformations = list(),
facet_args = list(),
binwidth = NULL,
bins = NULL,
breaks = NULL,
by_chain = FALSE,
freq = TRUE,
Expand All @@ -392,6 +397,7 @@ mcmc_violin <- function(
size = .25,
na.rm = TRUE,
binwidth = binwidth,
bins = bins,
breaks = breaks,
alpha = alpha
)
Expand Down
2 changes: 2 additions & 0 deletions R/mcmc-recover.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ mcmc_recover_hist <-
...,
facet_args = list(),
binwidth = NULL,
bins = NULL,
breaks = NULL) {

check_ignored_arguments(...)
Expand All @@ -327,6 +328,7 @@ mcmc_recover_hist <-
color = get_color("lh"),
linewidth = 0.25,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
geom_vline(
Expand Down
2 changes: 2 additions & 0 deletions R/ppc-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ ppc_hist <-
yrep,
...,
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE) {
check_ignored_arguments(...)
Expand All @@ -375,6 +376,7 @@ ppc_hist <-
geom_histogram(
linewidth = 0.25,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
scale_fill_ppc() +
Expand Down
2 changes: 2 additions & 0 deletions R/ppc-errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ ppc_error_hist <-
...,
facet_args = list(),
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE) {

Expand All @@ -135,6 +136,7 @@ ppc_error_hist <-
color = get_color("lh"),
size = 0.25,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
xlab(error_label()) +
Expand Down
2 changes: 2 additions & 0 deletions R/ppc-test-statistics.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ ppc_stat <-
stat = "mean",
...,
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE) {
stopifnot(length(stat) == 1)
Expand All @@ -127,6 +128,7 @@ ppc_stat <-
linewidth = 0.25,
na.rm = TRUE,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
geom_vline(
Expand Down
2 changes: 2 additions & 0 deletions R/ppd-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ ppd_hist <-
function(ypred,
...,
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE) {
check_ignored_arguments(...)
Expand All @@ -169,6 +170,7 @@ ppd_hist <-
geom_histogram(
size = 0.25,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
scale_color_ppd() +
Expand Down
2 changes: 2 additions & 0 deletions R/ppd-test-statistics.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ppd_stat <-
stat = "mean",
...,
binwidth = NULL,
bins = NULL,
breaks = NULL,
freq = TRUE) {
stopifnot(length(stat) == 1)
Expand All @@ -59,6 +60,7 @@ ppd_stat <-
linewidth = 0.25,
na.rm = TRUE,
binwidth = binwidth,
bins = bins,
breaks = breaks
) +
scale_color_ppd(guide = "none") +
Expand Down
3 changes: 2 additions & 1 deletion man-roxygen/args-hist.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' @param binwidth Passed to [ggplot2::geom_histogram()] to override
#' the default binwidth.
#'
#' @param bins Passed to [ggplot2::geom_histogram()] to override
#' the default binwidth.
#' @param breaks Passed to [ggplot2::geom_histogram()] as an
#' alternative to `binwidth`.
#'
7 changes: 5 additions & 2 deletions man/MCMC-diagnostics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/MCMC-distributions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/MCMC-recover.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion man/PPC-distributions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions man/PPC-errors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/PPC-test-statistics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion man/PPD-distributions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions man/PPD-test-statistics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading