Package: ggdist 3.3.2.9000

ggdist: Visualizations of Distributions and Uncertainty

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) <https://ideas.repec.org/a/bla/jorssa/v162y1999i1p45-58.html>, density plots, gradient plots, dot plots (Wilkinson L., 1999) <doi:10.1080/00031305.1999.10474474>, quantile dot plots (Kay M., Kola T., Hullman J., Munson S., 2016) <doi:10.1145/2858036.2858558>, complementary cumulative distribution function barplots (Fernandes M., Walls L., Munson S., Hullman J., Kay M., 2018) <doi:10.1145/3173574.3173718>, and fit curves with multiple uncertainty ribbons.

Authors:Matthew Kay [aut, cre], Brenton M. Wiernik [ctb]

ggdist_3.3.2.9000.tar.gz
ggdist_3.3.2.9000.zip(r-4.5)ggdist_3.3.2.9000.zip(r-4.4)ggdist_3.3.2.9000.zip(r-4.3)
ggdist_3.3.2.9000.tgz(r-4.4-x86_64)ggdist_3.3.2.9000.tgz(r-4.4-arm64)ggdist_3.3.2.9000.tgz(r-4.3-x86_64)ggdist_3.3.2.9000.tgz(r-4.3-arm64)
ggdist_3.3.2.9000.tar.gz(r-4.5-noble)ggdist_3.3.2.9000.tar.gz(r-4.4-noble)
ggdist_3.3.2.9000.tgz(r-4.4-emscripten)ggdist_3.3.2.9000.tgz(r-4.3-emscripten)
ggdist.pdf |ggdist.html
ggdist/json (API)
NEWS

# Install 'ggdist' in R:
install.packages('ggdist', repos = c('https://mjskay.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mjskay/ggdist/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

    On CRAN:

    ggplot2uncertaintyuncertainty-visualizationvisualization

    15.43 score 849 stars 59 packages 2.5k scripts 29k downloads 1 mentions 203 exports 33 dependencies

    Last updated 3 months agofrom:5b771834af. Checks:OK: 9. Indexed: yes.

    TargetResultDate
    Doc / VignettesOKOct 25 2024
    R-4.5-win-x86_64OKOct 25 2024
    R-4.5-linux-x86_64OKOct 25 2024
    R-4.4-win-x86_64OKOct 25 2024
    R-4.4-mac-x86_64OKOct 25 2024
    R-4.4-mac-aarch64OKOct 25 2024
    R-4.3-win-x86_64OKOct 25 2024
    R-4.3-mac-x86_64OKOct 25 2024
    R-4.3-mac-aarch64OKOct 25 2024

    Exports:AbstractStatSlabintervalalign_boundaryalign_centeralign_noneauto_partialaxis_titles_bottom_leftbandwidth_bcvbandwidth_dpibandwidth_nrdbandwidth_nrd0bandwidth_SJbandwidth_ucvbin_dotsblur_gaussianblur_intervalbounder_cdfbounder_cookebounder_rangebreaks_FDbreaks_fixedbreaks_quantilesbreaks_Scottbreaks_Sturgescurve_intervalcut_cdf_qidensity_boundeddensity_histogramdensity_unboundeddlkjcorr_marginaldstudent_tfacet_title_horizontalfacet_title_left_horizontalfacet_title_right_horizontalfind_dotplot_binwidthfrom_broom_namesfrom_ggmcmc_namesgeom_blur_dotsgeom_dotsgeom_dotsintervalgeom_intervalgeom_lineribbongeom_pointintervalgeom_slabgeom_slabintervalgeom_spikegeom_swarmgeom_weaveGeomBlurDotsGeomDotsGeomDotsintervalGeomIntervalGeomLineribbonGeomPointintervalGeomSlabGeomSlabintervalGeomSpikeGeomSwarmGeomWeaveguide_colorbar2guide_colourbar2guide_rampbarhdcihdillmarginalize_lkjcorrmean_hdcimean_hdimean_llmean_qimean_ulmedian_hdcimedian_hdimedian_llmedian_qimedian_ulModemode_hdcimode_hdimode_llmode_qimode_ulp_parse_distpartial_colour_rampplkjcorr_marginalpoint_intervalposition_dodgejustPositionDodgejustPr_pstudent_tqiqlkjcorr_marginalqstudent_tr_dist_nameramp_coloursrlkjcorr_marginalrstudent_tscale_color_ramp_continuousscale_color_ramp_discretescale_colour_ramp_continuousscale_colour_ramp_discretescale_fill_ramp_continuousscale_fill_ramp_discretescale_interval_alpha_continuousscale_interval_alpha_discretescale_interval_color_continuousscale_interval_color_discretescale_interval_colour_continuousscale_interval_colour_discretescale_interval_linetype_continuousscale_interval_linetype_discretescale_interval_size_continuousscale_interval_size_discretescale_point_alpha_continuousscale_point_alpha_discretescale_point_color_continuousscale_point_color_discretescale_point_colour_continuousscale_point_colour_discretescale_point_fill_continuousscale_point_fill_discretescale_point_size_continuousscale_point_size_discretescale_side_mirroredscale_slab_alpha_continuousscale_slab_alpha_discretescale_slab_color_continuousscale_slab_color_discretescale_slab_colour_continuousscale_slab_colour_discretescale_slab_fill_continuousscale_slab_fill_discretescale_slab_linetype_continuousscale_slab_linetype_discretescale_slab_linewidth_continuousscale_slab_linewidth_discretescale_slab_shape_continuousscale_slab_shape_discretescale_slab_size_continuousscale_slab_size_discretescale_thickness_identityscale_thickness_sharedsmooth_barsmooth_boundedsmooth_discretesmooth_nonesmooth_unboundedstat_ccdfintervalstat_cdfintervalstat_dist_ccdfintervalstat_dist_cdfintervalstat_dist_dotsstat_dist_dotsintervalstat_dist_eyestat_dist_gradientintervalstat_dist_halfeyestat_dist_intervalstat_dist_lineribbonstat_dist_pointintervalstat_dist_slabstat_dist_slabintervalstat_dotsstat_dotsintervalstat_eyestat_gradientintervalstat_halfeyestat_histintervalstat_intervalstat_lineribbonstat_mcse_dotsstat_pointintervalstat_ribbonstat_sample_slabintervalstat_slabstat_slabintervalstat_spikeStatDistSlabintervalStatIntervalStatPointintervalStatSampleSlabintervalStatSlabintervalStatSpikesubguide_axissubguide_countsubguide_dotssubguide_insidesubguide_integersubguide_nonesubguide_outsidesubguide_slabsubguide_spikesubscale_identitysubscale_thicknesstheme_ggdisttheme_tidybayesthicknessto_broom_namesto_ggmcmc_namesulwaiverweighted_ecdfweighted_quantileweighted_quantile_fun

    Dependencies:clicolorspacedistributionalfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmenumDerivpillarpkgconfigquadprogR6RColorBrewerRcpprlangscalestibbleutf8vctrsviridisLitewithr

    Dots + interval stats and geoms

    Rendered fromdotsinterval.Rmdusingknitr::rmarkdownon Oct 25 2024.

    Last update: 2024-03-04
    Started: 2022-01-15

    Frequentist uncertainty visualization

    Rendered fromfreq-uncertainty-vis.Rmdusingknitr::rmarkdownon Oct 25 2024.

    Last update: 2024-03-04
    Started: 2019-08-06

    Lineribbon stats and geoms

    Rendered fromlineribbon.Rmdusingknitr::rmarkdownon Oct 25 2024.

    Last update: 2024-03-04
    Started: 2020-07-15

    Slab + interval stats and geoms

    Rendered fromslabinterval.Rmdusingknitr::rmarkdownon Oct 25 2024.

    Last update: 2024-07-21
    Started: 2019-07-29

    Readme and manuals

    Help Manual

    Help pageTopics
    Visualizations of Distributions and Uncertaintyggdist-package ggdist
    Break (bin) alignment methodsalign align_boundary align_center align_none
    Automatic partial function application in ggdistautomatic-partial-functions auto_partial
    Bandwidth estimatorsbandwidth bandwidth_bcv bandwidth_dpi bandwidth_nrd bandwidth_nrd0 bandwidth_SJ bandwidth_ucv
    Bin data values using a dotplot algorithmbin_dots
    Blur functions for blurry dot plotsblur blur_gaussian blur_interval
    Estimate bounds of a distribution using the CDF of its order statisticsbounder_cdf
    Estimate bounds of a distribution using Cooke's methodbounder_cooke
    Estimate bounds of a distribution using the range of the samplebounder_range
    Break (bin) selection algorithms for histogramsbreaks breaks_FD breaks_fixed breaks_quantiles breaks_Scott breaks_Sturges
    Curvewise point and interval summaries for tidy data frames of draws from distributionscurve_interval curve_interval.data.frame curve_interval.matrix curve_interval.rvar
    Categorize values from a CDF into quantile intervalscut_cdf_qi
    Bounded density estimator using the reflection methoddensity_bounded
    Histogram density estimatordensity_histogram
    Unbounded density estimatordensity_unbounded
    Dynamically select a good bin width for a dotplotfind_dotplot_binwidth
    Blurry dot plot (geom)geom_blur_dots
    Dot plot (shortcut geom)geom_dots
    Automatic dotplot + point + interval meta-geomgeom_dotsinterval
    Multiple-interval plot (shortcut geom)geom_interval
    Line + multiple-ribbon plots (ggplot geom)geom_lineribbon
    Point + multiple-interval plot (shortcut geom)geom_pointinterval
    Slab (ridge) plot (shortcut geom)geom_slab
    Slab + point + interval meta-geomgeom_slabinterval
    Spike plot (ggplot2 geom)geom_spike
    Beeswarm plot (shortcut geom)geom_swarm
    Dot-weave plot (shortcut geom)geom_weave
    Deprecated functions and arguments in ggdistggdist-deprecated StatDistSlabinterval StatSampleSlabinterval stat_dist_ccdfinterval stat_dist_cdfinterval stat_dist_dots stat_dist_dotsinterval stat_dist_eye stat_dist_gradientinterval stat_dist_halfeye stat_dist_interval stat_dist_lineribbon stat_dist_pointinterval stat_dist_slab stat_dist_slabinterval stat_sample_slabinterval
    Continuous guide for colour ramp scales (ggplot2 guide)guide_rampbar
    Marginal distribution of a single correlation from an LKJ distributiondlkjcorr_marginal lkjcorr_marginal plkjcorr_marginal qlkjcorr_marginal rlkjcorr_marginal
    Turn spec for LKJ distribution into spec for marginal LKJ distributionmarginalize_lkjcorr
    Parse distribution specifications into columns of a data frameparse_dist parse_dist.brmsprior parse_dist.character parse_dist.data.frame parse_dist.default parse_dist.factor r_dist_name
    Partial colour ramp (datatype)partial_colour_ramp
    Point and interval summaries for tidy data frames of draws from distributionshdci hdi ll mean_hdci mean_hdi mean_ll mean_qi mean_ul median_hdci median_hdi median_ll median_qi median_ul Mode Mode.default Mode.distribution Mode.rvar mode_hdci mode_hdi mode_ll mode_qi mode_ul point_interval point_interval.default point_interval.distribution point_interval.numeric point_interval.rvar point_interval.tbl_df qi ul
    Dodge overlapping objects side-to-side, preserving justificationposition_dodgejust
    Probability expressions in ggdist aestheticsPr_ p_
    Apply partial colour rampsramp_colours
    Secondary color scale that ramps from another color (ggplot2 scale)scale_color_ramp scale_color_ramp_continuous scale_color_ramp_discrete scale_colour_ramp scale_colour_ramp_continuous scale_colour_ramp_discrete scale_fill_ramp scale_fill_ramp_continuous scale_fill_ramp_discrete
    Side scale for mirrored slabs (ggplot2 scale)scale_side_mirrored
    Slab thickness scale (ggplot2 scale)scale_thickness scale_thickness_identity scale_thickness_shared
    Smooth dot positions in a dotplot using a kernel density estimator ("density dotplots")smooth_bounded smooth_density smooth_unbounded
    Smooth dot positions in a dotplot of discrete values ("bar dotplots")smooth_bar smooth_discrete
    Apply no smooth to a dotplotsmooth_none
    CCDF bar plot (shortcut stat)stat_ccdfinterval
    CDF bar plot (shortcut stat)stat_cdfinterval
    Dot plot (shortcut stat)stat_dots
    Dots + point + interval plot (shortcut stat)stat_dotsinterval
    Eye (violin + interval) plot (shortcut stat)stat_eye
    Gradient + interval plot (shortcut stat)stat_gradientinterval
    Half-eye (density + interval) plot (shortcut stat)stat_halfeye
    Histogram + interval plot (shortcut stat)stat_histinterval
    Multiple-interval plot (shortcut stat)stat_interval
    Line + multiple-ribbon plot (shortcut stat)stat_lineribbon
    Blurry MCSE dot plot (stat)stat_mcse_dots
    Point + multiple-interval plot (shortcut stat)stat_pointinterval
    Multiple-ribbon plot (shortcut stat)stat_ribbon
    Slab (ridge) plot (shortcut stat)stat_slab
    Slab + interval plots for sample data and analytical distributions (ggplot stat)stat_slabinterval
    Spike plot (ggplot2 stat)stat_spike
    Scaled and shifted Student's t distributiondstudent_t pstudent_t qstudent_t rstudent_t student_t
    Sub-geometry scales for geom_slabinterval (ggplot2 scales)guide_colorbar2 guide_colourbar2 scales scale_interval_alpha_continuous scale_interval_alpha_discrete scale_interval_color_continuous scale_interval_color_discrete scale_interval_colour_continuous scale_interval_colour_discrete scale_interval_linetype_continuous scale_interval_linetype_discrete scale_interval_size_continuous scale_interval_size_discrete scale_point_alpha_continuous scale_point_alpha_discrete scale_point_color_continuous scale_point_color_discrete scale_point_colour_continuous scale_point_colour_discrete scale_point_fill_continuous scale_point_fill_discrete scale_point_size_continuous scale_point_size_discrete scale_slab_alpha_continuous scale_slab_alpha_discrete scale_slab_color_continuous scale_slab_color_discrete scale_slab_colour_continuous scale_slab_colour_discrete scale_slab_fill_continuous scale_slab_fill_discrete scale_slab_linetype_continuous scale_slab_linetype_discrete scale_slab_linewidth_continuous scale_slab_linewidth_discrete scale_slab_shape_continuous scale_slab_shape_discrete scale_slab_size_continuous scale_slab_size_discrete sub-geometry-scales
    Axis sub-guide for thickness scalessubguide_axis subguide_count subguide_dots subguide_inside subguide_integer subguide_outside subguide_slab subguide_spike
    Empty sub-guide for thickness scalessubguide_none
    Identity sub-scale for thickness aestheticsubscale_identity
    Sub-scale for thickness aestheticsubscale_thickness
    Simple, light ggplot2 theme for ggdist and tidybayesaxis_titles_bottom_left facet_title_horizontal facet_title_left_horizontal facet_title_right_horizontal theme_ggdist theme_tidybayes
    Thickness (datatype)thickness
    Translate between different tidy data frame formats for draws from distributionsfrom_broom_names from_ggmcmc_names tidy-format-translators to_broom_names to_ggmcmc_names
    A waived argumentwaiver
    Weighted empirical cumulative distribution functionweighted_ecdf
    Weighted sample quantilesweighted_quantile weighted_quantile_fun