# Tidy Data and 'Geoms' for Bayesian Models

## Documentation for package ‘tidybayes’ version 2.0.3

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

A C D E F G H L M N P Q R S T U X

tidybayes-package | Tidy Data and 'Geoms' for Bayesian Models

## -- A --

add_draws | Add draws to a data frame in tidy format
add_fitted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_fitted_samples | Deprecated functions, arguments, and column names in tidybayes
add_linpred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_predicted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_predicted_samples | Deprecated functions, arguments, and column names in tidybayes
add_residual_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
apply_prototypes | Decorate a model fit or sample with data types recovered from the input data
as_data_list | Data lists for input into Bayesian models
as_data_list.character | Data lists for input into Bayesian models
as_data_list.data.frame | Data lists for input into Bayesian models
as_data_list.data_list | Data lists for input into Bayesian models
as_data_list.default | Data lists for input into Bayesian models
as_data_list.factor | Data lists for input into Bayesian models
as_data_list.list | Data lists for input into Bayesian models
as_data_list.logical | Data lists for input into Bayesian models
as_data_list.numeric | Data lists for input into Bayesian models
as_sample_data_frame | Deprecated functions, arguments, and column names in tidybayes
as_sample_tibble | Deprecated functions, arguments, and column names in tidybayes
axis_titles_bottom_left | Simple, light ggplot2 theme for tidybayes

## -- C --

combine_chains | Combine the chain and iteration columns of tidy data frames of draws
compare_levels | Compare the value of draws of some variable from a Bayesian model for different levels of a factor
compose_data | Compose data for input into a Bayesian model

## -- D --

data_list | Data lists for input into Bayesian models
density_bins | Density bins and histogram bins as data frames
dlkjcorr_marginal | Marginal distribution of a single correlation from an LKJ distribution

## -- E --

extract_samples | Deprecated functions, arguments, and column names in tidybayes

## -- F --

facet_title_left_horizontal | Simple, light ggplot2 theme for tidybayes
facet_title_right_horizontal | Simple, light ggplot2 theme for tidybayes
fitted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
fitted_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
fitted_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
fitted_draws.stanreg | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
fitted_samples | Deprecated functions, arguments, and column names in tidybayes
from_broom_names | Translate between different tidy data frame formats for draws from distributions
from_ggmcmc_names | Translate between different tidy data frame formats for draws from distributions

## -- G --

gather_draws | Extract draws of variables in a Bayesian model fit into a tidy data format
gather_emmeans_draws | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_draws.default | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_draws.emm_list | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_samples | Deprecated functions, arguments, and column names in tidybayes
gather_lsmeans_samples | Deprecated functions, arguments, and column names in tidybayes
gather_pairs | Gather pairwise combinations of values from key/value columns in a long-format data frame
gather_samples | Deprecated functions, arguments, and column names in tidybayes
gather_terms | Deprecated functions, arguments, and column names in tidybayes
gather_variables | Gather variables from a tidy data frame of draws from variables into a single column
geom_dots | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
geom_dotsh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
geom_dotsinterval | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
geom_dotsintervalh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
geom_eye | Eye plots of densities with point and interval summaries (Deprecated spellings)
geom_eyeh | Eye plots of densities with point and interval summaries (Deprecated spellings)
geom_halfeyeh | Eye plots of densities with point and interval summaries (Deprecated spellings)
geom_interval | Multiple probability interval plots (ggplot geom)
geom_intervalh | Multiple probability interval plots (ggplot geom)
geom_lineribbon | Line + multiple probability ribbon plots (ggplot geom)
geom_pointinterval | Point + multiple probability interval plots (ggplot geom)
geom_pointintervalh | Point + multiple probability interval plots (ggplot geom)
geom_slab | Slab + point + interval meta-geom
geom_slabh | Slab + point + interval meta-geom
geom_slabinterval | Slab + point + interval meta-geom
get_variables | Get the names of the variables in a fitted Bayesian model
get_variables.default | Get the names of the variables in a fitted Bayesian model
get_variables.mcmc | Get the names of the variables in a fitted Bayesian model
get_variables.mcmc.list | Get the names of the variables in a fitted Bayesian model
ggeye | Deprecated functions, arguments, and column names in tidybayes
guide_colorbar2 | Custom ggplot scales for geom_slabinterval (and derivatives)
guide_colourbar2 | Custom ggplot scales for geom_slabinterval (and derivatives)

## -- H --

hdci | Point and interval summaries for tidy data frames of draws from distributions
hdi | Point and interval summaries for tidy data frames of draws from distributions
histogram_bins | Density bins and histogram bins as data frames

## -- L --

linpred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
lkjcorr_marginal | Marginal distribution of a single correlation from an LKJ distribution

## -- M --

marginalize_lkjcorr | Turn spec for LKJ distribution into spec for marginal LKJ distribution
mean_hdci | Point and interval summaries for tidy data frames of draws from distributions
mean_hdcih | Point and interval summaries for tidy data frames of draws from distributions
mean_hdi | Point and interval summaries for tidy data frames of draws from distributions
mean_hdih | Point and interval summaries for tidy data frames of draws from distributions
mean_qi | Point and interval summaries for tidy data frames of draws from distributions
mean_qih | Point and interval summaries for tidy data frames of draws from distributions
median_hdci | Point and interval summaries for tidy data frames of draws from distributions
median_hdcih | Point and interval summaries for tidy data frames of draws from distributions
median_hdi | Point and interval summaries for tidy data frames of draws from distributions
median_hdih | Point and interval summaries for tidy data frames of draws from distributions
median_qi | Point and interval summaries for tidy data frames of draws from distributions
median_qih | Point and interval summaries for tidy data frames of draws from distributions
Mode | Point and interval summaries for tidy data frames of draws from distributions
mode_hdci | Point and interval summaries for tidy data frames of draws from distributions
mode_hdcih | Point and interval summaries for tidy data frames of draws from distributions
mode_hdi | Point and interval summaries for tidy data frames of draws from distributions
mode_hdih | Point and interval summaries for tidy data frames of draws from distributions
mode_qi | Point and interval summaries for tidy data frames of draws from distributions
mode_qih | Point and interval summaries for tidy data frames of draws from distributions

## -- N --

n_prefix | Prefix function generator for composing dimension index columns

## -- P --

parameters | Deprecated functions, arguments, and column names in tidybayes
parse_dist | Parse distribution specifications into columns of a data frame
parse_dist.character | Parse distribution specifications into columns of a data frame
parse_dist.data.frame | Parse distribution specifications into columns of a data frame
parse_dist.default | Parse distribution specifications into columns of a data frame
parse_dist.factor | Parse distribution specifications into columns of a data frame
plkjcorr_marginal | Marginal distribution of a single correlation from an LKJ distribution
point_interval | Point and interval summaries for tidy data frames of draws from distributions
point_interval.default | Point and interval summaries for tidy data frames of draws from distributions
point_interval.numeric | Point and interval summaries for tidy data frames of draws from distributions
point_intervalh | Point and interval summaries for tidy data frames of draws from distributions
predicted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.stanreg | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_samples | Deprecated functions, arguments, and column names in tidybayes
predict_curve | Deprecated: Prediction curves for arbitrary functions of posteriors
predict_curve_density | Deprecated: Prediction curves for arbitrary functions of posteriors

## -- Q --

qi | Point and interval summaries for tidy data frames of draws from distributions
qlkjcorr_marginal | Marginal distribution of a single correlation from an LKJ distribution

## -- R --

recover_types | Decorate a model fit or sample with data types recovered from the input data
residual_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
residual_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
residual_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
rlkjcorr_marginal | Marginal distribution of a single correlation from an LKJ distribution
r_dist_name | Parse distribution specifications into columns of a data frame

## -- S --

sample_draws | Sample draws from a tidy-format data frame of draws
scales | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_alpha_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_alpha_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_color_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_color_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_colour_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_colour_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_linetype_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_linetype_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_size_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_interval_size_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_alpha_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_alpha_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_color_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_color_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_colour_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_colour_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_fill_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_fill_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_size_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_point_size_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_alpha_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_alpha_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_color_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_color_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_colour_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_colour_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_fill_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_fill_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_linetype_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_linetype_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_shape_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_shape_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_size_continuous | Custom ggplot scales for geom_slabinterval (and derivatives)
scale_slab_size_discrete | Custom ggplot scales for geom_slabinterval (and derivatives)
spread_draws | Extract draws of variables in a Bayesian model fit into a tidy data format
spread_samples | Deprecated functions, arguments, and column names in tidybayes
stat_ccdfinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_ccdfintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_cdfinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_cdfintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_dist_ccdfinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_ccdfintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_cdfinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_cdfintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_dots | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dist_dotsh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dist_dotsinterval | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dist_dotsintervalh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dist_eye | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_eyeh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_gradientinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_gradientintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_halfeye | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_halfeyeh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_interval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_intervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_lineribbon | Line + multiple probability ribbon plots (ggplot stat)
stat_dist_pointinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_pointintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_slab | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_slabh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dist_slabinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for analytical distributions (ggplot stat)
stat_dots | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dotsh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dotsinterval | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_dotsintervalh | Automatic dotplots, dots + intervals, and quantile dotplots (ggplot geom)
stat_eye | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_eyeh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_gradientinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_gradientintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_halfeye | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_halfeyeh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_histinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_histintervalh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_interval | Multiple probability interval plots (ggplot stat)
stat_intervalh | Multiple probability interval plots (ggplot stat)
stat_lineribbon | Line + multiple probability ribbon plots (ggplot stat)
stat_pointinterval | Point summary + multiple probability interval plots (ggplot stat)
stat_pointintervalh | Point summary + multiple probability interval plots (ggplot stat)
stat_sample_slabinterval | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_slab | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)
stat_slabh | Distribution + interval plots (eye plots, half-eye plots, CCDF barplots, etc) for samples (ggplot stat)

## -- T --

theme_tidybayes | Simple, light ggplot2 theme for tidybayes
tidy-format-translators | Translate between different tidy data frame formats for draws from distributions
tidybayes | Tidy Data and 'Geoms' for Bayesian Models
tidybayes-deprecated | Deprecated functions, arguments, and column names in tidybayes
tidybayes-models | Models supported by tidybayes
tidy_draws | Get a sample of posterior draws from a model as a tibble
tidy_draws.brmsfit | Get a sample of posterior draws from a model as a tibble
tidy_draws.data.frame | Get a sample of posterior draws from a model as a tibble
tidy_draws.default | Get a sample of posterior draws from a model as a tibble
tidy_draws.jagsUI | Get a sample of posterior draws from a model as a tibble
tidy_draws.matrix | Get a sample of posterior draws from a model as a tibble
tidy_draws.mcmc.list | Get a sample of posterior draws from a model as a tibble
tidy_draws.MCMCglmm | Get a sample of posterior draws from a model as a tibble
tidy_draws.runjags | Get a sample of posterior draws from a model as a tibble
tidy_draws.stanfit | Get a sample of posterior draws from a model as a tibble
tidy_draws.stanreg | Get a sample of posterior draws from a model as a tibble
tidy_samples | Deprecated functions, arguments, and column names in tidybayes
to_broom_names | Translate between different tidy data frame formats for draws from distributions
to_ggmcmc_names | Translate between different tidy data frame formats for draws from distributions

## -- U --

ungather_draws | Turn tidy data frames of variables from a Bayesian model back into untidy data
ungather_samples | Deprecated functions, arguments, and column names in tidybayes
unspread_draws | Turn tidy data frames of variables from a Bayesian model back into untidy data
unspread_samples | Deprecated functions, arguments, and column names in tidybayes

## -- X --

x_at_y | Generate lookup vectors for composing nested indices