-
-
Save tommo42/4084379 to your computer and use it in GitHub Desktop.
Simple matrixInput example
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
library(shiny) | |
shinyServer(function(input, output) { | |
output$plot <- reactivePlot(function() { | |
plot(input$foo) | |
}) | |
}) |
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
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