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
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 uses of `geom_bar(stat = "identity")` with the more idiomatic ggplot2 form `geom_col()`

# bayesplot 1.15.0

Expand Down
3 changes: 1 addition & 2 deletions R/bayesplot-colors.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ plot_scheme <- function(scheme = NULL) {
)

ggplot(color_data, aes(x = .data$name, y = .data$value, fill = .data$group)) +
geom_bar(
geom_col(
width = .5,
stat = "identity",
color = "white",
linewidth = 0.1
) +
Expand Down
4 changes: 1 addition & 3 deletions R/mcmc-diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,7 @@ drop_NAs_and_warn <- function(x) {
bayesplot_theme_get()
if (style == "bar") {
graph <- graph +
geom_bar(
position = "identity",
stat = "identity",
geom_col(
linewidth = 0.2,
fill = get_color("l"),
color = get_color("lh"),
Expand Down
Loading