nhs-r-community / demos-and-how-tos

A repo for community contributed demos and how-tos to get common stuff done in the R language
https://nhs-r-community.github.io/demos-and-how-tos/
MIT License
29 stars 13 forks source link

Shiny UI output for changing selection #40

Closed JonMinton closed 1 year ago

JonMinton commented 1 year ago

This is a PR for adding the code example for the #help-shiny channel in the NHS R Community. The example shows how to use uiOutput to change the range of options for one input based on what's already been selected for the other input. (To avoid plotting a variable against itself on a scatterplot). As requested/noted by Zoe Turner, having the example here will mean the code example won't get lost on the slack channel.