Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add density controls to mcmc_dens() and mcmc_dens_overlay() #261

Merged
merged 3 commits into from
Oct 5, 2021

Conversation

tjmahr
Copy link
Collaborator

@tjmahr tjmahr commented Feb 1, 2021

Closes #258

library(bayesplot)
#> This is bayesplot version 1.8.0.9000
#> - Online documentation and vignettes at mc-stan.org/bayesplot
#> - bayesplot theme set to bayesplot::theme_default()
#>    * Does _not_ affect other ggplot2 plots
#>    * See ?bayesplot_theme_set for details on theme setting
x <- example_mcmc_draws()

mcmc_dens_overlay(x, n_dens = 10)

mcmc_dens(x, n_dens = 10)

mcmc_dens_overlay(x, "alpha")

mcmc_dens_overlay(x, "alpha", bw = "SJ")

Created on 2021-02-01 by the reprex package (v1.0.0)

@codecov-commenter
Copy link

Codecov Report

Merging #261 (5f652ec) into master (7c4a1f7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 5f652ec differs from pull request most recent head bb50861. Consider uploading reports for the commit bb50861 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #261   +/-   ##
=======================================
  Coverage   98.36%   98.37%           
=======================================
  Files          32       32           
  Lines        4155     4172   +17     
=======================================
+ Hits         4087     4104   +17     
  Misses         68       68           
Impacted Files Coverage Δ
R/mcmc-distributions.R 99.50% <100.00%> (+0.07%) ⬆️
R/ppc-intervals.R 99.36% <0.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60edc5a...bb50861. Read the comment docs.

@jgabry
Copy link
Member

jgabry commented Oct 5, 2021

Finally going through the other PRs that need to be merged. This one looks good. Merging now.

@jgabry jgabry merged commit 3fc3a89 into master Oct 5, 2021
@jgabry jgabry deleted the issue-258 branch October 5, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set bw in mcmc_dens_overlay
3 participants