Uncertainty visualization examples
Branch: master
Clone or download
Latest commit b8390ee Feb 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
arima_files/figure-gfm add bsts to arima example Jan 8, 2019
barbarella_files/figure-gfm label some things Aug 20, 2018
linear-regression_files/figure-gfm minor changes to linear regression examples Feb 15, 2019
marginal-effects_categorical-predictor_files simple mean diff plot Nov 16, 2018
mtcars_files/figure-gfm mtcars examples Oct 18, 2018
multivariate-regression_files/figure-gfm some tweaks to correlation heatmaps Dec 2, 2018
proportions_files/figure-gfm make title more generic Aug 17, 2018
snowfall_files/figure-gfm ridiculous snowfall HOPs Feb 12, 2019
us-unemployment_files/figure-gfm more unemployment stuff Feb 17, 2019
.gitattributes initial checkin + hops proportions example Aug 17, 2018
.gitignore make title more generic Aug 17, 2018
README.Rmd quantile dotplots and HOPs for a snowfall prediction Feb 12, 2019
README.md quantile dotplots and HOPs for a snowfall prediction Feb 12, 2019
arima.Rmd add bsts to arima example Jan 8, 2019
arima.md add bsts to arima example Jan 8, 2019
barbarella.Rmd use gather_pairs instead of pairwise (new name in tidybayes) Oct 20, 2018
barbarella.jpg barbarella examples Aug 20, 2018
barbarella.md label some things Aug 20, 2018
linear-regression.Rmd minor changes to linear regression examples Feb 15, 2019
linear-regression.md minor changes to linear regression examples Feb 15, 2019
marginal-effects_categorical-predictor.Rmd simple mean diff plot Nov 16, 2018
marginal-effects_categorical-predictor.html simple mean diff plot Nov 16, 2018
mtcars.Rmd mtcars examples Oct 18, 2018
mtcars.md mtcars examples Oct 18, 2018
multivariate-regression.Rmd some tweaks to correlation heatmaps Dec 2, 2018
multivariate-regression.md some tweaks to correlation heatmaps Dec 2, 2018
proportions.Rmd make title more generic Aug 17, 2018
proportions.md make title more generic Aug 17, 2018
references.bib initial checkin + hops proportions example Aug 17, 2018
snowfall.Rmd ridiculous snowfall HOPs Feb 12, 2019
snowfall.md ridiculous snowfall HOPs Feb 12, 2019
snowfall.png add snowfall tweet image Feb 12, 2019
us-unemployment.Rmd more unemployment stuff Feb 17, 2019
us-unemployment.csv first stab at some times series examples on US unemployment Feb 16, 2019
us-unemployment.md more unemployment stuff Feb 17, 2019

README.md

Uncertainty Examples

Often, when someone asks me an uncertainty visualization question I throw together an RMarkdown document to work through the problem. I have started to collect some of those examples in this repository.

If you are looking for more examples, check out the tidybayes documentation as well — the tidybayes+brms vignette in particular has some things not included here.

Index

These are typically pretty roughly thrown together, and are in a bit of a stream-of-consciousness style. You have been warned.

  • proportions: demo of using hypothetical outcome plots (HOPs) and quantile dotplots to display uncertainty in some proportions

  • linear-regression: a variety of approaches applied to a linear regression: HOPs, density+interval, and quantile dotplots of coefficients; multiple uncertainty bands, spaghetti plots, and HOPs for uncertainty in the fit line; and posterior predictive intervals for predictive uncertainty.

  • multivariate-regression: a meandering attempt to improve on correlation heatmaps, including the use of gradients within density plots and a “dithering” approach.

  • barbarella: visualizations for a survey with a 10-point rating scale analyzed with an ordinal regression model. Includes some posterior predictive checks, HOPs (animated uncertainty), quantile dotplots, and density+interval (“half-eye”) plots.

  • arima: visualizations of forecasts for a simple autoregressive time series model. Includes spaghetti plots and HOPs, plus demos the use of not-explicitly-supported packages with tidybayes (in this case, bsts—Bayesian structural time series).

  • snowfall: quantile dotplots and HOPs for a snowfall prediction.

  • mtcars: Some spaghetti plots and HOPs with mtcars data.