Created
July 3, 2023 13:40
-
-
Save charliejhadley/5945442ab32256f02775df273db7c68c to your computer and use it in GitHub Desktop.
split file
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
function(input, output, session){ | |
output$curve_plot <- renderPlot({ | |
print(input$exponent) | |
curve(x^as.integer(input$exponent), from = -5, to = 5) | |
}) | |
} |
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
fluidPage( | |
"Hello world", | |
selectInput("exponent", | |
label = "Set the exponent", | |
choices = 1:5), | |
plotOutput("curve_plot") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment