-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
36 lines (27 loc) · 1.1 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
31
32
33
34
35
36
library(shiny)
library(BH)
library(ggvis)
shinyUI(fluidPage(
titlePanel("11th Anual Jack Marsh Memorial Indoor League"),
sidebarLayout(
sidebarPanel(
helpText("Data from the 2014 Harvard indoor ultimate frisbee league."),
radioButtons("radio", label = "Data Format",
choices = list("Totals" = "totals", "Per Game" = "per"),
selected = "totals"),
sliderInput("ast_range", "Assists:",
min = 0, max = 40, value = c(0, 40)),
sliderInput("goal_range", "Goals:",
min = 0, max = 40, value = c(0, 40)),
sliderInput("game_range", "Games Played:",
min = 0, max = 8, value = c(0, 8)),
selectInput("team", label = "Team:",
choices = list("All Players", "Josh Fries Memorial", "No Flex Zone", "Swai Guys",
"Rooftop Swai Farm", "Brawl or Nothing", "The Buns", "Lev Towers", "Motherhuckers "),
selected = "All Players")
),
mainPanel(
ggvisOutput("scatter")
)
)
))