Last active
January 12, 2021 16:38
-
-
Save joek13/aecc77f94c01136c246ee71d5f8fe66e to your computer and use it in GitHub Desktop.
This file contains hidden or 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) | |
ui <- fluidPage( | |
numericInput(inputId = "n", "Sample size", value = 25), | |
plotOutput(outputId="hist") | |
) | |
server <- function (input, output) { | |
output$hist <- renderPlot ({hist(rnorm(input$n))}) | |
} | |
shinyApp(ui = ui, server = server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment