Files
shiny/_includes/tutorial/ui-and-server.md
2012-07-26 10:16:22 -07:00

479 B

UI & Server

ui.R

library(shiny)

# Define UI for miles per gallon application
shinyUI(pageWithSidebar(

  # Application title
  headerPanel("Miles Per Gallon"),

  sidebarPanel(),

  mainPanel()
))

server.R

library(shiny)

# Define server logic required to plot various variables against mpg
shinyServer(function(input, output) {


})

MPG Screenshot