Skip to content

Instantly share code, notes, and snippets.

@tommo42
Forked from jcheng5/server.R
Created November 16, 2012 05:23
Show Gist options
  • Save tommo42/4084379 to your computer and use it in GitHub Desktop.
Save tommo42/4084379 to your computer and use it in GitHub Desktop.
Simple matrixInput example
library(shiny)
shinyServer(function(input, output) {
output$plot <- reactivePlot(function() {
plot(input$foo)
})
})
library(shiny)
library(shinyIncubator)
shinyUI(pageWithSidebar(
headerPanel('Simple matrixInput example'),
sidebarPanel(
matrixInput('foo', 'Foo', head(cars))
),
mainPanel(
plotOutput(outputId='plot')
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment