-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
59 lines (43 loc) · 2.28 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
library(shiny)
# Define UI for application that draws a histogram
shinyUI(
navbarPage("Transit Shed Explorer", id='nav',
tabPanel("Map",
div(class = "outer",
tags$head(
# Include our custom CSS
includeCSS("styles.css")
),
leafletOutput("mymap", height ="100%", width = "100%"),
# Sidebar with a slider input for number of bins
absolutePanel(id = "controls", class = "panel panel-default", fixed = TRUE,
draggable = TRUE, top = 60, left = "auto", right = 20, bottom = "auto",
width = 330, height = "auto",
h3('Controls'),
dateInput("date", strong("Date"),
min = "2020-10-22",
max = NULL,
format = "mm-dd-yyyy",
value = "2020-10-22",
startview = "month",
autoclose = TRUE),
fluidRow(
column(4, numericInput("hh", strong("Hour"), 8, min = 1, max = 12, step = 1)),
column(4, numericInput("mm", strong("Min"), 30, min = 1, max = 59, step = 1)),
column(4, selectInput("am_pm", strong("AM/PM"), choices = c("am","pm"), selected = "am")),
),
sliderInput("mins", strong("Travel Time"), min = 10, max = 60, value = 60, step = 10),
checkboxGroupInput("modes", strong("Select Modes"),
choices = c('WALK','BICYCLE','TRANSIT'), selected = c('WALK', 'TRANSIT'), inline = TRUE),
sliderInput("walk", strong("Max. Walk Distance (Mi.)"), min = 0.25, max = 2, value = 0.5, step = 0.25, ticks = FALSE),
fluidRow(
column(5, numericInput("transfer", strong('Transfer Time (Mins)'), 2, min = 1, max = 5, step = 0.5)),
column(5, numericInput("max_transfer", strong(paste("Max # of Transfers")), 1, min = 0, max = 3, step = 1)),
),
checkboxInput("wheelchair", strong("Wheelchair Accessible")),
actionButton("go", strong('Calculate Transit Shed!'), icon = NULL),
actionButton("stop", "Show Nearby Stops")
)
)
)
))