An open API service indexing awesome lists of open source software.

https://github.com/ignacio82/vizdraws

vizdraws creates interactive visualizations using draws from a prior and posterior distributions.
https://github.com/ignacio82/vizdraws

bayesian visualization visualization-library visualization-tools

Last synced: 5 months ago
JSON representation

vizdraws creates interactive visualizations using draws from a prior and posterior distributions.

Awesome Lists containing this project

README

          

---
output:
md_document:
variant: gfm
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

# vizdraws

**vizdraws** creates interactive visualizations using draws from a prior and posterior distributions.

[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/vizdraws?color=blue)](https://cran.r-project.org/package=vizdraws)
[![Downloads_grand-total](http://cranlogs.r-pkg.org/badges/grand-total/vizdraws?color=blue)](https://cran.r-project.org/package=vizdraws)
[![last-month](http://cranlogs.r-pkg.org/badges/last-month/vizdraws?color=blue)](https://cran.r-project.org/package=vizdraws)
[![last-week](http://cranlogs.r-pkg.org/badges/last-week/vizdraws?color=blue)](https://cran.r-project.org/package=vizdraws)

## Installation

``` r
install.packages('vizdraws')
```

The latest development version can be installed from github:

``` r
# install.packages("remotes")
remotes::install_github('ignacio82/vizdraws')
```

## Example

This is a example which shows you how to how to visualize the transition from the prior to the posterior:

```{r example, eval=FALSE}
library(vizdraws)
set.seed(9782)
vizdraws(prior = rnorm(10000, 0, 1), posterior = rnorm(10000, 1.1, 0.5), MME = 0.5, threshold = 0.8)
```

![](https://ignacio.martinez.fyi/Posterior.gif)

### Notes

The bell-curve icon was [created by Davo Sime.](https://thenounproject.com/term/bell-curve/614251/)