Learn R Programming

⚠️There's a newer version (3.3.2) of this package.Take me there.

ggdist (version 3.3.1)

Visualizations of Distributions and Uncertainty

Description

Provides primitives for visualizing distributions using 'ggplot2' that are particularly tuned for visualizing uncertainty in either a frequentist or Bayesian mode. Both analytical distributions (such as frequentist confidence distributions or Bayesian priors) and distributions represented as samples (such as bootstrap distributions or Bayesian posterior samples) are easily visualized. Visualization primitives include but are not limited to: points with multiple uncertainty intervals, eye plots (Spiegelhalter D., 1999) , density plots, gradient plots, dot plots (Wilkinson L., 1999) , quantile dot plots (Kay M., Kola T., Hullman J., Munson S., 2016) , complementary cumulative distribution function barplots (Fernandes M., Walls L., Munson S., Hullman J., Kay M., 2018) , and fit curves with multiple uncertainty ribbons.

Copy Link

Version

Install

install.packages('ggdist')

Monthly Downloads

30,681

Version

3.3.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Kay

Last Published

November 27th, 2023

Functions in ggdist (3.3.1)

curve_interval

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

Multiple-interval plot (shortcut geom)
geom_dots

Dot plot (shortcut geom)
geom_lineribbon

Line + multiple-ribbon plots (ggplot geom)
density_histogram

Histogram density estimator
density_bounded

Bounded density estimator using the reflection method
geom_dotsinterval

Automatic dotplot + point + interval meta-geom
find_dotplot_binwidth

Dynamically select a good bin width for a dotplot
density_unbounded

Unbounded density estimator
cut_cdf_qi

Categorize values from a CDF into quantile intervals
ggdist-package

Visualizations of Distributions and Uncertainty
geom_spike

Spike plot (ggplot2 geom)
geom_slab

Slab (ridge) plot (shortcut geom)
AbstractStatSlabinterval

Base ggproto classes for ggdist
guide_rampbar

Continuous colour ramp guide
geom_weave

Dot-weave plot (shortcut geom)
geom_slabinterval

Slab + point + interval meta-geom
geom_swarm

Beeswarm plot (shortcut geom)
geom_pointinterval

Point + multiple-interval plot (shortcut geom)
ggdist-deprecated

Deprecated functions and arguments in ggdist
scale_side_mirrored

Side scale for mirrored slabs
parse_dist

Parse distribution specifications into columns of a data frame
lkjcorr_marginal

Marginal distribution of a single correlation from an LKJ distribution
marginalize_lkjcorr

Turn spec for LKJ distribution into spec for marginal LKJ distribution
scale_thickness

Scale for slab thickness
point_interval

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

Smooth dot positions in a dotplot using a kernel density estimator ("density dotplots")
scales

Custom ggplot scales for geom_slabinterval (and derivatives)
scale_colour_ramp

Secondary ggplot color scale that ramps from another color
position_dodgejust

Dodge overlapping objects side-to-side, preserving justification
bounder_range

Estimate bounds of a distribution using the range of the sample
bounder_cdf

Estimate bounds of a distribution using the CDF of its order statistics
bandwidth

Bandwidth estimators
bin_dots

Bin data values using a dotplot algorithm
RankCorr

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

Break (bin) alignment methods
breaks

Break (bin) selection algorithms for histograms
Pr_

Probability expressions in ggdist aesthetics
bounder_cooke

Estimate bounds of a distribution using Cooke's method
auto_partial

Automatic partial function application in ggdist