UI.R completion

The only thing remaining to do in order to have a fully functional application is display the outputs in UI.R. As it was explained before, each render variable has a corresponding output counterpart. Back to our example, as explained in the following sections this is how UI.R is completed.

UI.R

As it has been explained, every output name corresponds to an object in the output list created in server.R:

library(shiny) # Starting line shinyUI(fluidPage( # Application title titlePanel("Adult Dataset"), sidebarLayout( # Sidebar sidebarPanel( h1("Gender"), checkboxGroupInput("gender", "Choose the genders", choices = levels(data.adult$sex), selected = levels(data.adult$sex)), h1("Age"), sliderInput("minage", "Select lower limit", min(data.adult$age), ...

Get Learning Shiny now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.