inst/shiny-examples/myapp/ui.R

# title: basic UI
# purpose: a basic UI, together with server callable via moody::moody
# date: 05.08.2021
# author: Lukas

ui <- fluidPage(

  # App title ----
  titlePanel("Hello Shiny!"),

  # Sidebar layout with input and output definitions ----
  sidebarLayout(

    # Sidebar panel for inputs ----
    sidebarPanel(

      # Input: Slider for the number of bins ----
      sliderInput(inputId = "bins",
                  label = "Number of bins:",
                  min = 1,
                  max = 50,
                  value = 30)

    ),

    # Main panel for displaying outputs ----
    mainPanel(

      # Output: Histogram ----
      plotOutput(outputId = "distPlot")

    )
  )
)
lmuenter/moody documentation built on Dec. 21, 2021, 11:43 a.m.