using renderUI based input in a Shiny Module
✓ Published0🌍 Public
FFrissAnalytics
Last edited Nov 3, 2015
Created on Nov 3, 2015
This example demonstrates a Shiny module with two side-by-side scatterplots of the mtcars dataset, each letting users select x and y variables via dropdown menus. The left plot’s controls are generated dynamically using `renderUI` and `uiOutput`, while the right plot uses static `selectInput` widgets. Both plots are rendered with `renderPlot` and a helper function that calls `ggplot2`’s `geom_point`. The module is defined with `scatterOuput` and `scatter`, connected via `callModule`, showing how to mix dynamic and fixed UI elements within a modular Shiny app.
AI-generated description