This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributed by Joe Cheng, February 2013 | |
# Requires googleVis version 0.4.0 and shiny 0.4.0 or higher | |
# server.R | |
library(googleVis) | |
library(shiny) | |
shinyServer(function(input, output) { | |
datasetInput <- reactive({ | |
switch(input$dataset, | |
"rock" = rock, | |
"pressure" = pressure, |