-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
30 lines (26 loc) · 1.25 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
library(shiny)
# Define UI for application that draws a barplot
shinyUI(fluidPage(
# Application title
titlePanel("Mysteries of the Yelp Orient"),
# Sidebar with a dropdown input
sidebarLayout(
sidebarPanel(
selectInput("state", label = h5("Select Your State"),
choices = list("Arizona" = "AZ",
"Nevada" = "NV")),
selectInput("dish", label = h5("Select Your Dish"),
choices = list("Fried Rice" = ".*fried rice", # catch-all for chicken/jerk/pork fried rice
"Egg Drop Soup" = "egg drop soup",
"Hot & Sour Soup" = "hot.*sour soup", # "hot.*sour soup" includes "hot & sour", "hot and sour"
"Sweet & Sour Dishes" = "sweet.*sour", # "sweet sour" dishes incl. sweet & sour pork
"Kung Pao Chicken" = "kung pao.+", # "kung pao chicken" / "kung pao xxx"
"Chicken Mongolian" = ".+mongolian", # "chicken mongolian" / "mongolian xxx"
"Beef Noodle Soup" = "beef.*noodle soup"))
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("barplot")
)
)
))