Skip to content
r.

tidybayes

mjskay/tidybayes · Public GitHub repository

Bayesian analysis + tidy data + geoms (R package)

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

tidybayes live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

tidybayes is an R package that aims to make it easy to integrate popular Bayesian modeling methods into a tidy data + ggplot workflow. It builds on top of (and re-exports) several functions for visualizing uncertainty from its sister package, ggdist

Tidy data frames (one observation per row) are particularly convenient for use in a variety of R data manipulation and visualization packages. However, when using Bayesian modeling functions like JAGS or Stan in R, we often have to translate this data into a form the model understands, and then after running the model, translate the resulting sample (or predictions) into a more tidy format for use with other R functions. tidybayes aims to simplify these two common (often tedious) operations:

translating data from a data.frame into a list , making sure factors are encoded as numerical data, adding variables to store the length of indices, etc. This package helps automate these operations using the composedata() function, which automatically handles data types like numeric, logical, factor, and ordinal, and allows easy extensions for converting other data types into a format the model understands by providing your own implementation of the generic asdatalist().

Requirements and intended audience

tidybayes is an R package that aims to make it easy to integrate popular Bayesian modeling methods into a tidy data + ggplot workflow. It builds on top of (and re-exports) several functions for visualizing uncertainty from its sister package, ggdist

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-12. Source: https://github.com/mjskay/tidybayes/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2024-09-17. Saved release: v3.0.7 · 2024-09-16. These dates do not guarantee ongoing maintenance.

Technologies
R
Licence
GPL-3.0. Distributing the software or derivatives can require sharing source under the same licence.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories