7/29/2023 0 Comments Rstudio shiny tutorial![]() Note that this example does not make use of a folder containing ui.R and server.R. Xlab = "Duration (minutes)", main = "Geyser eruption duration")ĭens <- density(faithful$eruptions, adjust = input$bw_adjust) Hist(faithful$eruptions, probability = TRUE, breaks = as.numeric(input$n_breaks), SliderInput("bw_adjust", label = "Bandwidth adjustment:", `sliderInput` functions create the input widgets used to Made interactive by wrapping it in the Shiny This demonstrates how a standard R plot can be Outputs are automatically updated whenever inputsĬhange. You can embed Shiny inputs and outputs in your document. You can "ask" RStudio to generate an example R Markdown Shiny document, which contains this sample code: # Inputs and Outputs
0 Comments
Leave a Reply. |