-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
executable file
·119 lines (96 loc) · 2.98 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
library("shiny")
library("plotly")
library("XLConnectJars")
library("XLConnect")
options(shiny.sanitize.errors = FALSE, shiny.minified = TRUE)
fluidPage(
id = "Q2_form",
shinyjs::useShinyjs(),
tags$h1("Q2 Analyser"),
tags$br(),
textOutput("catch_notice"),
uiOutput("data_download"),
tags$br(),
tabsetPanel(id = "tabs",
tabPanel("Q2 Data", value = "Q2_data_tab",
fluidRow(
column(3,
tags$h1("Upload Q2 Data File"),
fileInput("xlsInput", "", accept = c(".xls",".xlsx")),
textOutput("data_notice"),
uiOutput("data_blanks")
)
),
fluidRow(
tableOutput("Q2_Data")
)
),
tabPanel("Q2 Metadata", value = "Q2_metadata_tab",
fluidRow(
column(3,
tags$h1("Metadata File"),
downloadButton("downloadTemplate", "Download Metadata Template (.xlsx)"),
fileInput("metadata","", accept = c(".xls",".xlsx")),
textOutput("meta_notice"),
tags$h1("Q2 Conditions"),
textInput("sitePressure","Site Pressure (kPa)"),
textInput("altitude","Altitude (m)"),
checkboxInput("is_MSLP", "Has the pressure been normalised to sea level (Mean Sea Level Pressure)?", value = FALSE),
textInput("tubeVol","Tube Vol (mL)"),
textInput("temperature","Temperature (C)")
),
column(6,
tableOutput("Q2_Meta")
)
)
),
navbarMenu("Analysis",
tabPanel("Fluorescence", value = "Q2_fluoro_tab",
textOutput("fluoro_notice"),
plotlyOutput("fluoro"),
uiOutput("fluoro_slider"),
fluidRow(
column(1,
uiOutput("fluoro_start_spot")
),
column(1,
uiOutput("fluoro_end_spot")
)
),
fluidRow(
column(2,
textOutput("fluro_duration")
)
)
),
tabPanel("Respiration", value = "Q2_resp_tab",
fluidPage(
textOutput("respiration_notice"),
column(1,
tableOutput("respiration")
),
column(5, offset=6,
tableOutput("Resp_Meta")
),
column(5,offset=6,
plotlyOutput("Resp_Area"),
tags$br(),
plotlyOutput("Resp_Fresh_Mass"),
tags$br(),
plotlyOutput("Resp_Dry_Mass")
)
)
)
),
tabPanel("Help", value = "Q2_help_tab",
tags$h2("Help and instructions are actively in development. In the meantime, contact Darren Cullerne for help!"),
tags$a(href="mailto:[email protected]", "[email protected]"),
textOutput("temp1"),
tags$br(),
tags$br(),
tags$h2("Q2 Analyser - Instructions"),
tags$br(),
includeHTML("www/Q2_analyser_help_documentation.html")
)
)
)