-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
49 lines (39 loc) · 1.36 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
#==============
# libs
library(shiny)
library(dplyr)
library(ggplot2)
#=================
# UI widgets
source("MakeWidgets.R")
source("MDS.R")
shinyUI(fluidPage(
titlePanel("Bike Safety Durham"),
fluidRow(
column(width = 2
, checkboxGroupInput("chkDriverAlcohol", label = h4("Driver Alcohol"),
choices = as.list(strDriverAlcohol),
selected = strDriverAlcohol)
, checkboxGroupInput("chkBikeInjury", label = h4("Bike Injury"),
choices = as.list(strBikeInjury),
selected = strBikeInjury)
), # Row 1, Column 1
column(width = 10
, plotOutput("pltDateTime"
, dblclick = "pltDateTime_dblclick"
, brush = brushOpts(id = "pltDateTime_brush", resetOnNew = TRUE)
)
) # Row 1, Column 2
), # End Row 1
fluidRow(
column(width = 2
, h2("Multi-dimensional Scaling")
, checkboxGroupInput("chkMDS", label = h4("MDS dimensions")
, choices = as.list(strMDS)
, selected = strMDS)
)
, column(width = 10
, plotOutput("pltMDS"))
)
) # End fluidPage
) # End ShinyUI