Skip to content

Instantly share code, notes, and snippets.

@mages
mages / server.R
Last active December 13, 2015 20:38
Example of renderGvis by Joe Cheng
# 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,