Created
November 11, 2013 16:20
-
-
Save jean-robert/7415885 to your computer and use it in GitHub Desktop.
Vertical align test for Shiny
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$distPlot <- renderPlot({ | |
dist <- rnorm(input$obs) | |
hist(dist) | |
}) | |
output$distPlot2 <- renderPlot({ | |
dist <- runif(input$obs) | |
hist(dist) | |
}) | |
}) |
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) | |
shinyUI(pageWithSidebar( | |
headerPanel("Vertical alignment test"), | |
sidebarPanel( | |
sliderInput("obs", | |
"Number of observations:", | |
min = 1, | |
max = 1000, | |
value = 500) | |
), | |
mainPanel( | |
div(class='row', | |
div(class='span6', plotOutput("distPlot")), | |
div(class='span6', plotOutput("distPlot2"))) | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment