Introduction to Shiny applications

Interactive data exploration is useful for

  1. Exploratory data analysis
  2. Allowing collaborators to visualize their data
  3. Teaching statistical concepts

Two main parts:

  1. server.R
  2. ui.R

Examples

# Print the directory containing the code for all examples
system.file("examples", package="shiny")

# Run one of the examples
runExample("01_hello")

How to run

  1. Create server.R and ui.R files
  2. Set working directory to folder containing server.R and ui.R
  3. Load shiny library(shiny)
  4. Type runApp()