-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathREADME.Rmd
53 lines (38 loc) · 1.48 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
output:
md_document:
variant: gfm
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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/)