some html animatied demos for stats classes, using R and Rmarkdown See them in action at
- The effect of alpha level on power
- The effect of sample size of power
- The effect of sample standard deviation on power
- The effect of effect size on power
- The effect outliers have on regression lines
- A simulated sampling distribution demonstrating the central limit theorem
- System requirements:
- R
- pandoc (>= 1.12.3)
- R package requirements
- animation
- knitr
- rmarkdown
- pander
- ggplot2
- grid
- gridExtra
- Start an R session with an interactive command line
- Set the working directory to the directory with build_demos.R in it (the top level dir)
- source("build_demos.R")
- build_demos()
- by default output will be in html_output directory
- Open html_output/demos.html, follow links to the demos, and be amazed
To only build some demos (they can take a while, ggplot-ing is slow), give build_demos() a character vector specifying which to build. See comments inside build_demos() for more info.