- Launching the app grabs the datasets from R installation using
data(package="datasets")
- It then uses this information to populate the dropdown using
selectInput()
- The data name strings are converted to variable names using
get()
function
- The variables in the selected data are displayed using
renderUI()
and selectInput()
functions.
- After this, histogram is created just as in standard R:
data(CO2)
hist(CO2$uptake,
col = "dodgerblue4")
