-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
209 lines (185 loc) · 8.65 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Title: Filter_app
## Authors: Urs Tilmann Wolpert, Department of Geography, Justus-Liebig-University Giessen
## Sebastian Kreutzer, IRAMAT-CRP2A, Universite Bordeaux Montaigne (France)
## Contact: [email protected]
## Date: Thu June 22 2017
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
shinyUI(
navbarPage("Filter_app",
tabPanel("Transmission",
sidebarLayout(
sidebarPanel(
# tabs on sidebar panel
tabsetPanel(type = "pills", selected = "Data",
# Tab 1: Data Transmission
tabPanel("Data",
tags$hr(),
strong("Select filters"),
uiOutput(outputId = "filters"),
tags$hr(),
radioButtons(
"stimulationInput",
label = "Show stimulation wavelength",
choices =
c("None" = "NA",
"Violet: 405 \u0394 3 nm " = "violett",
"Blue: 458 \u0394 3 nm" = "blue",
"Green: 525 \u0394 20 nm" = "green",
"Infrared: 850 \u0394 3 nm" = "infrared",
"Custom wavelength" = "custom"
)
),
fluidRow(
column(width = 10,
inputPanel(
numericInput("stimulationInput_custom_centre",
label = "Centre", value = 470, width = 150, min = 2, max = 1000),
numericInput("stimulationInput_custom_width",
label = "Width", value = 20, width = 150, min = 1, max = 1000),
RLumShiny:::jscolorInput("rec_colour", label = "Colour")))
)
), # End Tab 1
# Tab 2: Plot Options Transmission
tabPanel("Plot Options",
tags$hr(),
textInput("main",
label = "Plot title",
value = "Filter Combinations"),
tags$hr(),
sliderInput("range",
"Wavelength range",
min = 200,
max = 1000,
value = c(200, 1000)),
checkboxInput(inputId = "net_transmission",
label = "Show net transmisison",
value = TRUE),
checkboxInput(inputId = "legend",
label = "Show legend",
value = TRUE)
), # End Tab 2
# Tab 3: Export plots + datatable Transmission
tabPanel("Export",
tags$hr(),
textInput(
"filename",
label = "Filename",
value = "Enter filename..."),
tags$hr(),
fluidRow(
column(6,
numericInput(
"widthInput",
label = "Image width",
value = 7
)),
column(6,
numericInput(
"heightInput",
label = "Image height",
value = 7
))),
downloadButton("exportPlot", label = "Download plot as PDF"),
tags$hr(),
downloadButton("exportTable", label = "Download raw data as CSV")
) # End Tab 3
)),
mainPanel(uiOutput(outputId = "warningtext"),
plotOutput("filterPlot"),
tableOutput("metadata")
)
)
),
tabPanel("Optical Density",
sidebarLayout(
sidebarPanel(
# tabs on sidebar Panel
tabsetPanel(type = "pills", selected = "Data & Plot Options",
# Tab 1: Data Optical Density
tabPanel("Data & Plot Options",
tags$hr(),
selectInput("opticaldensity", label = "Select filters",
choices = filters),
tags$hr(),
textInput("mainOD",
label = "Plot title",
value = "Filter"),
sliderInput("rangeOD",
"Wavelength range",
min = 200,
max = 1000,
value = c(200, 1000))
), # End Tab 1
# Tab 2: Plot Options Optical Density
tabPanel("Export",
tags$hr(),
textInput(
"filenameOD",
label = "Filename",
value = "Enter filename..."),
fluidRow(
column(width = 6,
numericInput(
"widthInputOD",
label = "Image width",
value = 7)
),
column(width = 6,
numericInput(
"heightInputOD",
label = "Image height",
value = 7)
)
),
downloadButton("exportPlotOD", label = "Download plot as PDF"),
tags$hr(),
downloadButton("exportTableOD", label = "Download raw data as CSV")
)
)
),
mainPanel(
uiOutput(outputId = "warningtextOD"),
plotOutput("densityPlot")
)
)
),
tabPanel("Advanced",
fileInput("own_file", accept = "*.xlsx", label = "Upload individual filter data"),
helpText("A '.xlsx' file containing one's individual filter data can be temporarily uploaded here."),
helpText(strong("Note to keep the exact same data structure as in the template '.xlsx' file, which can be downloaded below.")),
tags$hr(),
downloadButton("MasterFile",label = "Download Filterdatabase"),
br(),
br(),
helpText("The currently used '.xlsx' file of the app (template or individual) can be downloaded here.")
),
tabPanel("About",
h5("App version"),
p("0.2.1 (2021-02-24)"),
h5("Authors"),
p("Urs Tilmann Wolpert, Department of Geography, Justus-Liebig-University Giessen (Germany)"),
p("Sebastian Kreutzer, Geography & Earth Sciences, Aberystwyth University (United Kingdom)"),
h5("Contact"),
p("[email protected]"),
tags$hr(),
p("This application was developed in framework of an
internship at the IRAMAT-CRP2A at the Université Bordeaux Montaigne, France."),
p(strong("Due to legal restrictions the app itself comes without any filter data.")),
br(),
h5("License"),
p("This program is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or any later version."),
p("This program is distributed in the hope that it will be useful
, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
a("GNU General Public License", href = "https://github.com/LaikaNo2/Filter_app/blob/master/LICENSE"),
"for more details."),
p("The 'chooser.R' R-script and 'chooser-binding.js' Java Script used in this program are taken from the",
a("shiny-example", href = "https://github.com/rstudio/shiny-examples"),
"repository under the", a("MIT License", href = "https://github.com/rstudio/shiny-examples/blob/master/LICENSE"), ".")
)
)
)