tidybayes into tidybayes and ggdist (#250). ggdist now contains all stats/geoms from tidybayes (except deprecated ones), all support functions for stats/geoms (such as point_interval()), vignette("slabinterval"), and vignette("freq-uncertainty-vis"). tidybayes retains all other functions, and re-exports all ggdist functions for now.ggplot2. If needed, this can be overridden using the existing orientation parameter.
h-suffix geoms are now deprecated. The h-suffix geoms have been left in tidybayes and give a deprecation warning when used; they cannot be used from ggdist directly.h-suffix point_interval() functions are also deprecated, since they are not needed in tidybayes nor in ggplot2::stat_summary().geom_interval(), geom_pointinterval(), and geom_lineribbon() no longer automatically set the ymin and ymax aesthetics if .lower or .upper are present in the data. This allows them to work better with automatic orientation detection (and was a bad feature to have existed in the first place anyway). The deprecated tidybayes::geom_intervalh() and tidybayes::geom_pointintervalh() still automatically set those aesthetics, since they are deprecated anyway (so supporting the old behavior is fine in these functions).geom_lineribbon()/stat_lineribbon() now supports a step argument for creating stepped lineribbons (#249). H/T to Solomon Kurz for the suggestion.ggdist now has its own implementation of the scaled and shifted Student’s t distribution (dstudent_t(), qstudent_t(), etc), since it is very useful for visualizing confidence distributions. That is re-exported in tidybayes as well`.Minor fixes for changes in tibble 3.0.0
Various minor forward and backward compatibility fixes:
stringsAsFactors issues for R 4[[<- for R 4parse() instead of str2lang() for compatibility with R <= 3.6geom_slabinterval() and stat_slabinterval() “meta-geom” (#84). This has enabled a bunch of new geoms to be created (see vignette("slabinterval") and fixed a number of outstanding issues:
position = "dodge" correctly (#180)geom_dots() and geom_dotsinterval() (#210). These include a quantiles parameter on the stats to make it easy to create quantile dotplots.stat_dist_... family of geoms for both the geom_slabinterval() family and geom_lineribbon() (see stat_dist_slabinterval() and stat_dist_lineribbon()).parse_dist(), which parses distribution specifications (like normal(0,1)) into tidy columns, can be combined with the stat_dist_... family of geoms to easily to visualize priors (e.g. from brms).dlkjcorr_marginal() and company), combined with parse_dist() and the stat_dist_... family make it easy to visualize the marginal LKJ prior on a cell in a correlation matrix. (#191 #192)vignette("freq-uncertainty-vis"), also made possible by the new stat_dist_... family of geoms (#188)tidy_draws() can now be applied to already-tidied data frames, allowing dependent functions (like spread_draws() and gather_draws()) to also be applied to data frames directly (#82). This can be a useful optimization in workflows where the initial tidying is slow but spreading/gathering is fast (see discussion in #144)stat_dist_slabh(). An example of this usage is in vignette("tidy-brms").hdi() now uses trimmed densities by default to avoid odd behavior with bounded distributions (#165).compare_levels(comparison = ) now uses a modern tidy approach to dealing with unevaluated expressions, so rlang::exprs() can be used in place of plyr::.() (#174, #175)geom_lineribbon() now works with ggnewscale (#178)fitted_draws()/predicted_draws() give more helpful error messages on unsupported models (#177)New features and documentation:
Bug fixes:
New features and documentation:
Minor changes:
predicted_draws(), closes #134emm_list in gather_emmeans_draws(), closes #126geom_lineribbon() color black, closes #153gather_pairs method for creating custom scatterplot matrices (and more!)NA values are now better supported in point_interval, and it has an na.rm argument (#123)SuggestsMajor changes: