-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
82 lines (73 loc) · 1.82 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
ui <- shinyUI(fluidPage(
titlePanel("Cost Difference"),
fluidRow(
column(12, checkboxInput("two_components", "Compare two components", TRUE))
),
# Dropdown selections
fluidRow(
column(6,
wellPanel(
uiOutput('unit1'),
uiOutput('d11'),
uiOutput('deviated_variable1'),
uiOutput('measure1')
)),
column(6,
conditionalPanel(condition = "input.two_components == true",
wellPanel(
uiOutput('unit2'),
uiOutput('d12'),
uiOutput('deviated_variable2'),
uiOutput('measure2')
)
))
),
fluidRow(
wellPanel(
selectInput("plot_type", "Plot Type: ",
c("Line Chart" = "line_chart",
"Bar Chart" = "bar_chart"))
)
),
conditionalPanel(condition = "input.two_components == true",
fluidRow(
column(12, tags$h3("Across Components"))
),
fluidRow(
column(6,
plotOutput("plot1", brush = brushOpts("plot_brush1", direction = "x")),
wellPanel(textOutput("status1"))
),
column(6,
plotOutput("plot2", brush = brushOpts("plot_brush2", direction = "x")),
wellPanel(textOutput("status2"))
)
),
fluidRow(
wellPanel(
plotOutput("reference_plot")
)
),
fluidRow(
wellPanel(
textOutput("comparison")
)
)
),
conditionalPanel(condition = "input.two_components == false",
fluidRow(
column(12, tags$h3("Across Time"))
),
fluidRow(
wellPanel(
plotOutput("single_comparison_plot")
)
),
fluidRow(
wellPanel(
plotOutput("timeline_plot",
brush = brushOpts("timeline_brush", direction = "x"))
)
)
)
))