Package overview

Overview of ggdist.

ggdist-package

Visualizations of Distributions and Uncertainty

Point summaries and intervals

Calculate point summaries and intervals on (grouped) data frames of draws

point_interval() qi() hdi() Mode() hdci() mean_qi() median_qi() mode_qi() mean_hdi() median_hdi() mode_hdi() mean_hdci() median_hdci() mode_hdci()

Point and interval summaries for tidy data frames of draws from distributions

curve_interval()

Curvewise point and interval summaries for tidy data frames of draws from distributions

Visualizing draws

Stats and geoms for visualizing tidy data frames of draws (e.g. sample data, draws from a bootstrap distributation, draws from a Bayesian posterior).

geom_slabinterval() geom_slab()

Slab + point + interval meta-geom

stat_sample_slabinterval() stat_halfeye() stat_eye() stat_ccdfinterval() stat_cdfinterval() stat_gradientinterval() stat_histinterval() stat_slab()

Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)

geom_interval()

Multiple uncertainty interval plots (ggplot geom)

geom_lineribbon()

Line + multiple uncertainty ribbon plots (ggplot geom)

geom_pointinterval()

Point + multiple uncertainty interval plots (ggplot geom)

geom_dotsinterval() geom_dots() stat_dotsinterval() stat_dots() stat_dist_dotsinterval() stat_dist_dots()

Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)

stat_interval()

Multiple uncertainty interval plots (ggplot stat)

stat_lineribbon() stat_dist_lineribbon()

Line + multiple probability ribbon plots (ggplot stat)

stat_pointinterval()

Point summary + multiple uncertainty interval plots (ggplot stat)

Visualizing analytical distributions

Stats, geoms, and helper functions for visualizing analytical distributions (e.g. frequentist confidence distributions, Bayesian priors).

stat_dist_slabinterval() stat_dist_halfeye() stat_dist_eye() stat_dist_ccdfinterval() stat_dist_cdfinterval() stat_dist_gradientinterval() stat_dist_pointinterval() stat_dist_interval() stat_dist_slab()

Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)

geom_dotsinterval() geom_dots() stat_dotsinterval() stat_dots() stat_dist_dotsinterval() stat_dist_dots()

Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)

parse_dist() r_dist_name()

Parse distribution specifications into columns of a data frame

dstudent_t() pstudent_t() qstudent_t() rstudent_t()

Scaled and shifted Student's t distribution

dlkjcorr_marginal() plkjcorr_marginal() qlkjcorr_marginal() rlkjcorr_marginal()

Marginal distribution of a single correlation from an LKJ distribution

marginalize_lkjcorr()

Turn spec for LKJ distribution into spec for marginal LKJ distribution

Compatibility with other packages

Functions to convert the ggdist naming scheme (for point_interval()) to and from other packages’ naming schemes.

to_broom_names() from_broom_names() to_ggmcmc_names() from_ggmcmc_names()

Translate between different tidy data frame formats for draws from distributions

GGplot scales

Scales for custom aesthetics used by ggdist geoms and stats

scale_point_colour_discrete() scale_point_color_discrete() scale_point_colour_continuous() scale_point_color_continuous() scale_point_fill_discrete() scale_point_fill_continuous() scale_point_alpha_continuous() scale_point_alpha_discrete() scale_point_size_continuous() scale_point_size_discrete() scale_interval_colour_discrete() scale_interval_color_discrete() scale_interval_colour_continuous() scale_interval_color_continuous() scale_interval_alpha_continuous() scale_interval_alpha_discrete() scale_interval_size_continuous() scale_interval_size_discrete() scale_interval_linetype_discrete() scale_interval_linetype_continuous() scale_slab_colour_discrete() scale_slab_color_discrete() scale_slab_colour_continuous() scale_slab_color_continuous() scale_slab_fill_discrete() scale_slab_fill_continuous() scale_slab_alpha_continuous() scale_slab_alpha_discrete() scale_slab_size_continuous() scale_slab_size_discrete() scale_slab_linetype_discrete() scale_slab_linetype_continuous() scale_slab_shape_discrete() scale_slab_shape_continuous() guide_colourbar2() guide_colorbar2()

Custom ggplot scales for geom_slabinterval (and derivatives)

GGplot theme

ggdist theme for ggplot2

theme_ggdist() theme_tidybayes() facet_title_left_horizontal() facet_title_right_horizontal() axis_titles_bottom_left()

Simple, light ggplot2 theme for ggdist and tidybayes

Datasets

Datasets used for examples and testing

RankCorr

Thinned subset of posterior sample from a Bayesian analysis of perception of correlation.