Repository navigation
Expand file tree
/
Copy pathUI.R
More file actions
191 lines (162 loc) · 9.48 KB
/
Copy pathUI.R
File metadata and controls
191 lines (162 loc) · 9.48 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
##########################################################################################################
# THREADNET: SHINY UI
# This software may be used according to the terms provided in the
# GNU General Public License (GPL-3.0) https://opensource.org/licenses/GPL-3.0?
# Absolutely no warranty!
##########################################################################################################
# Sept 7, 2017 New Shiny R version using architecture and advice from Ezra Brooks & Pat Bills
# March 21, 2018 New organization of tabs.
# pdf(NULL) # prevent plotly errors
ui <- fluidPage(
# Application title
tags$h3(align='center', "ThreadNet 3 Development"),
# tags$audio( src='tellusastory.mp3',type='audio/mpeg', controls='TRUE'),
tabsetPanel(type = "tabs",
tabPanel("Read Data",
uiOutput("Data_Tab_Controls_1"),
uiOutput("Data_Tab_Controls_2"),
DT::dataTableOutput("Data_Tab_Output_2")
),
tabPanel("Choose POV",
tags$h3("Select columns from your data to define your point of view."),
tabsetPanel(type = "tabs",
tabPanel("Define Threads",
tags$h4("Threads are defined by contextual features that STAY THE SAME during the thread. At least ONE is required."),
uiOutput("POV_Tab_Controls_2"),
plotlyOutput("ContextFlowers_2")
),
tabPanel("Define Events",
tags$h4("Events are marked by contextual features that CHANGE within the threads. At least ONE is required."),
uiOutput("POV_Tab_Controls_3"),
plotlyOutput("ContextFlowers_3")
),
tabPanel("Preview Threads",
tags$h4("Threads based on selected POV"),
verbatimTextOutput("Preview_Thread_Output_1" ),
plotlyOutput("rawOccurrenceThreadMap_2")
),
tabPanel("Intermediate Data",
tags$h4("This table shows the data threaded from your chosen POV"),
DT::dataTableOutput("Thread_Tab_Output_1")
)
)
),
tabPanel("Occurrences to Events",
tags$h4("Map occurrences into events"),
tabsetPanel(type = "tabs",
tabPanel("One-to-One",
uiOutput("One_to_One_controls"),
DT::dataTableOutput("One_to_one_Tab_Output_1")
),
tabPanel("Contextual Chunks",
uiOutput("Contextual_Chunk_controls"),
DT::dataTableOutput("Contextual_Chunks_Tab_Output_1")
),
tabPanel("Regular Expressions",
uiOutput("Regular_Expression_controls")
),
tabPanel("Frequent Ngrams",
uiOutput("Frequent_Ngram_controls")
),
tabPanel("Maximal Patterns",
uiOutput("Maximal_Pattern_controls")
),
tabPanel("Cluster Events",
uiOutput("Cluster_Event_controls_1"),
uiOutput("Cluster_Event_controls_2"),
dendroNetworkOutput("dendroClusterResult")
),
tabPanel("Manage Event Maps",
uiOutput("Manage_Event_Map_controls"),
verbatimTextOutput("delete_confirm")
)
)
),
tabPanel("Visualize",
fluidRow(
column(3,
uiOutput("Visualize_Tab_Controls_1")),
column(4,
uiOutput("Visualize_Tab_Controls_2"))
),
tabsetPanel(type = "tabs",
tabPanel("Repetitive Sub-sequences",
uiOutput("nGramControls"),
plotlyOutput("nGramBarchart")
),
tabPanel("Whole Sequences",
plotlyOutput("WholeSequenceThreadMap")
),
tabPanel("Circular layout",
tags$p("Put plotly circular layout here")),
tabPanel("Force layout",
uiOutput("Network_Tab_Controls_2"),
forceNetworkOutput("forceNetworkD3", width = "100%", height = "1200px")),
tabPanel("Custom layout",
plotlyOutput("VisualizeCustomNetwork"))
)
),
tabPanel("Comparisons",
tabsetPanel(type = "tabs",
tabPanel("Compare Mappings (synchronic)",
fluidRow(
column(6, tags$h3("Mapping A"),
uiOutput("Comparison_Tab_Controls_A1"),
uiOutput("Comparison_Tab_Controls_A2"),
plotlyOutput("Comparison_Plots_A")),
column(6,tags$h3("Mapping B"),
uiOutput("Comparison_Tab_Controls_B1"),
uiOutput("Comparison_Tab_Controls_B2"),
plotlyOutput("Comparison_Plots_B"))
)),
tabPanel("Compare time periods (diachronic)",
fluidRow(
column(3,
uiOutput("Diachronic_Comparison_Tab_Controls_1")),
column(4,
uiOutput("Diachronic_Comparison_Tab_Controls_2"))
),
uiOutput("Diachronic_Comparison_Tab_Controls_3"),
uiOutput("Diachronic_Comparison_Tab_Controls_4"),
uiOutput("Diachronic_Comparison_Tab_Controls_5"),
plotlyOutput("DiachronicComparisonPlots")
)
)
),
tabPanel("Moving Window",
fluidRow(
column(3,
uiOutput("Moving_Window_Tab_Controls_1")),
column(4,
uiOutput("Moving_Window_Tab_Controls_2"))
),
uiOutput("Moving_Window_Tab_Controls_3"),
fluidRow(
column(6,"SubsetA",
uiOutput("Moving_Window_Tab_Controls_4_A"),
plotlyOutput("MovingWindow_Plot_A")
),
column(6,"SubsetB",
uiOutput("Moving_Window_Tab_Controls_4_B"),
plotlyOutput("MovingWindow_Plot_B")
)
)
),
tabPanel("Parameter Settings",
tableOutput("currentParameterSettings")
),
tabPanel("Acknowledgements",
tags$h4("Support:"),
tags$a(href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=1734237","NSF SES-1734237"),
tags$p("Antecedents of Complexity in Healthcare Routines"),
tags$h4("Code Gurus:"),
tags$p("Yu Lucy Han, Ezra Brooks, Patrick Bills, Danielle Barnes, Morgan Patterson"),
tags$h4("Collaborators:"),
tags$p("Jan Recker, George Wyner, Martha Feldman, Thorvald Haerem, Waldemar Kremser, Julie Ryan Wolf, Ken Frank, Alice Pentland, Inkyu Kim, Sudhanshu Srivastava"),
tags$h4("Related Publications:"),
tags$a(href="http://routines.broad.msu.edu/resources/","http://routines.broad.msu.edu/resources/" ),
tags$h4("ThreadNet 2 (MatLab version):"),
tags$a(href="http://routines.broad.msu.edu/ThreadNet/","http://routines.broad.msu.edu/ThreadNet/" )
)
)
)