bayesplot icon indicating copy to clipboard operation
bayesplot copied to clipboard

fix ppc-distribution docs for argument usage & correct test function in test-ppc-distribution

Open behramulukir opened this issue 4 months ago • 1 comments

In ppc-distribution, there is some insufficient information in the documentation, which should be updated. Also, test-ppc-distribution has a typo, which makes tests run the wrong function while testing. Here is a list of the things to be fixed:

documentation:

  • binwidth, bins, and breaks arguments are passed to ggdist::stat_dots and ggplot2::geom_area in addition to gggplot2::geom_hist
  • freq argument is used in frequency polygons in addition to histograms

testing:

  • in test-ppc-distribution, test_that("ppc_dens,pp_hist,ppc_freqpoly,ppc_boxplot return ggplot objects”) function uses ppc_dens function instead of ppd_dens function at the part where it tests ppd versions of the functions

behramulukir avatar Aug 11 '25 10:08 behramulukir

Great, thanks for finding these issues.

jgabry avatar Aug 18 '25 17:08 jgabry