This shiny app simulates tossing a coin, and visualizing the frequency of heads
Assuming that you have both R and RStudio, the other thing you need is the R package "shiny"
. In case of doubt, run:
install.packages("shiny")
The easiest way to run an app is with the runGitHub()
function from the "shiny"
package.
library(shiny)
# Run an app from a subdirectory in the repo
runGitHub("stat133-spring-2018", "ucb-stat133", subdir = "apps/coin-toss")