inst/App/ui.R

# Load packages
library(shiny)

# Load R functions
source("R-functions.R")

#==========#
# Shiny UI #
#==========#
ui <- fluidPage(

  # App title
  titlePanel("Titled histogram Shiny app"),

  # Sidebar layout
  sidebarLayout(
    sidebarPanel(
      sliderInput(inputId = "bins", label = "Number of bins:",
                  min = 1, max = 50, value = 30)
    ),
    mainPanel(
      plotOutput(outputId = "histPlot")
    )
  )
)
gfsarmanho/ShinyAppPackage documentation built on May 25, 2019, 8:17 a.m.