You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this code in the vignette to reproduce the mcmc_rhat() output:
color_scheme_set("brightblue") # see help("color_scheme_set")
mcmc_rhat(rhats)
The resulting plot is missing the line/point in the legend for the first two bins:
I see the same behavior in the subsequent plot, when y-axis text is added to the plot.
And when I run this code in the vignette to reproduce the mcmc_neff() output:
mcmc_neff(ratios_cp, size = 2)
The resulting plot is again missing a line/point in the legend:
Is this behavior expected? I noticed there are no data points in the bins that are missing from the legend so the plot's interpretations are not technically impacted. That said, it seems odd to have an incomplete legend.
-- Here are the relevant details of my R session --
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.4 LTS
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bayesplot_1.11.1 shiny_1.8.1.1
--
Thanks for the guidance!
Arianna C.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. That's definitely not intentional! It's strange because I'm pretty sure this wasn't an issue in the past, so I wonder if something changed in ggplot2 at some point that's causing this. Maybe we just need to change how we're creating the legend to play nicely with a change in ggplot2.
Ok I think this should be fixed by #328. I'll include this in the next release, but for now you can install the fixed version from that GitHub branch using
Hello,
I'm trying to recreate the plots in the "Visual MCMC diagnostics using the bayesplot package" - specifically those under the 'mcmc_rhat, mcmc_rhat_hist' section and the 'mcmc_neff' section.
When I run this code in the vignette to reproduce the
mcmc_rhat()
output:The resulting plot is missing the line/point in the legend for the first two bins:
I see the same behavior in the subsequent plot, when y-axis text is added to the plot.
And when I run this code in the vignette to reproduce the
mcmc_neff()
output:The resulting plot is again missing a line/point in the legend:
Is this behavior expected? I noticed there are no data points in the bins that are missing from the legend so the plot's interpretations are not technically impacted. That said, it seems odd to have an incomplete legend.
-- Here are the relevant details of my R session --
--
Thanks for the guidance!
Arianna C.
The text was updated successfully, but these errors were encountered: