Repository of Shiny apps.
R
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gambler
lottery
screens
.gitignore
README.md
run.R

README.md

Shiny Apps

This repository hosts some Shiny apps I have developed. The run.R script can be used to get started.

First, install shiny and shinyIncubator packages, preferably the development versions.

require(devtools)
install_github('shiny', 'rstudio')
install_github('shiny-incubator', 'rstudio')
require(shiny)
  • gambler - Simple app that lets you simulate a sequence of random events, for example coin flips, and plot the cummulative sum. This app allows you choose the odds of winning, the number of games to simulate, and the number of simulations to display simultaneously.

    Gambler Shiny App

    To run the app locally:

    shiny::runGitHub('ShinyApps', 'jbryer', subdir='gambler')
    

    Or from the RStudio server (note that RStudio does not guarantee the server will always be up so this link may or may not work).

  • lottery - Similar to the gambler app, this simulates buying a series of lottery tickets with varying odds of winning different amounts. Each previous run is saved and plotted in light grey to show how the current run compares to past runs.

    Lottery Tickets Shiny App

    To run the app locally:

    shiny::runGitHub('ShinyApps', 'jbryer', subdir='lottery')
    

    Or from the RStudio server (note that RStudio does not guarantee the server will always be up so this link may or may not work).