-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
162 lines (129 loc) · 8.69 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
navbarPage("CW Research Data App",
# WQ Data ==========================================
tabPanel("WQ",
sidebarLayout(
sidebarPanel("",
dateRangeInput(inputId = "WQ_dateInput", label = "Date",
start = substr((as.character(min(lRaw.dat$DateTime, na.rm = TRUE))),1,10),
end = substr((as.character(max(lRaw.dat$DateTime, na.rm = TRUE))),1,10),
#end = "2017-12-31",
min = substr((as.character(min(lRaw.dat$DateTime, na.rm = TRUE))),1,10),
max = substr((as.character(max(lRaw.dat$DateTime, na.rm = TRUE))),1,10),,
format = "yyyy-mm-dd",
startview = "month",
weekstart = 1),
uiOutput("WQ_systemOutput"),
actionButton(inputId = "WQ_goInput", label = "Update"),
uiOutput("WQ_samplepointOutput"),
radioButtons(inputId = "WQ_plotypeInput",
label = "Type of Plot",
choices = c("Time series","Pore water plot"),
selected = "Time series"),
radioButtons(inputId = "WQ_facetInput",
label = "Multiple Plots.",
choices = c("no multiple Plots","System", "Sampling Point"),
selected = "no multiple Plots"),
uiOutput("WQ_parameterOutput"),
radioButtons(inputId = "plotextInput",
label = "Plot Ext.",
choices = c("pdf", "png"),
selected = "pdf")
),
mainPanel("",
#plotOutput(outputId = "WQ_tsPlot"),
uiOutput("ui"),
downloadButton(outputId = "WQ_downtsPlot",
label = "Download the plot"),
downloadButton(outputId = "WQ_downsummarytable",
label = "Download the summary table"),
downloadButton(outputId = "WQ_downdata",
label = "Download the data"),
tableOutput(outputId = "WQ_summarytable"),
tableOutput(outputId = "WQ_table")
)
)
),
# Flow data ========================================
tabPanel("Flow",
sidebarLayout(
sidebarPanel("",
dateRangeInput(inputId = "FLOW_dateInput", label = "Date",
start = substr((as.character(min(lflow_daily.df$RDate, na.rm = TRUE))),1,10),
end = substr((as.character(max(lflow_daily.df$RDate, na.rm = TRUE))),1,10),
min = substr((as.character(min(lflow_daily.df$RDate, na.rm = TRUE))),1,10),
max = substr((as.character(max(lflow_daily.df$RDate, na.rm = TRUE))),1,10),
format = "yyyy-mm-dd",
startview = "month",
weekstart = 1),
radioButtons(inputId = "FLOW_scaleInput",
label = "Data Source",
choices = c("Hourly","Daily Summary", "Monthly Summary"),
selected = "Daily Summary"),
checkboxGroupInput(inputId = "FLOW_systemInput", label = "Systems",
choiceNames = as.list(as.character(sort(unique(lflow_daily.df$System)))),
choiceValues = as.list(as.character(sort(unique(lflow_daily.df$System))))),
checkboxGroupInput(inputId = "FLOW_positionInput", label = "Position",
choiceNames = as.list(as.character(sort(unique(lflow_daily.df$Position)))),
choiceValues = as.list(as.character(sort(unique(lflow_daily.df$Position))))),
radioButtons(inputId = "FLOW_facetInput",
label = "Multiple Plots.",
choices = c("no multiple Plots","System", "In/Out"),
selected = "no multiple Plots"),
actionButton(inputId = "FLOW_goInput", label = "Update"),
radioButtons(inputId = "plotextInput",
label = "Plot Ext.",
choices = c("pdf", "png"),
selected = "pdf")
),
# Show a plot of the generated distribution
mainPanel(
plotOutput(outputId = "FLOW_Plot"),
downloadButton(outputId = "FLOW_downPlot",
label = "Download the plot"),
downloadButton(outputId = "FLOW_downdata",
label = "Download the data"),
downloadButton(outputId = "FLOW_downsummarytable",
label = "Download the summary table"),
tableOutput(outputId = "FLOW_summarytable")
)
)
),
# Weather data =====================================
tabPanel("Weather",
sidebarLayout(
sidebarPanel("",
dateRangeInput(inputId = "WEATHER_dateInput", label = "Date",
start = substr((as.character(min(lweather_daily.df$Date, na.rm = TRUE))),1,10),
end = substr((as.character(max(lweather_daily.df$Date, na.rm = TRUE))),1,10),
min = substr((as.character(min(lweather_daily.df$Date, na.rm = TRUE))),1,10),
max = substr((as.character(max(lweather_daily.df$Date, na.rm = TRUE))),1,10),
format = "yyyy-mm-dd",
startview = "month",
weekstart = 1),
radioButtons(inputId = "WEATHER_scaleInput",
label = "Data Source",
choices = c("10 min Raw Data","Daily Summary", "Monthly Summary"),
selected = "Daily"),
checkboxGroupInput(inputId = "WEATHER_parameterInput", label = "Parameters",
choiceNames = as.list(as.character(sort(unique(lweather_daily.df$Parameter)))),
choiceValues = as.list(as.character(sort(unique(lweather_daily.df$Parameter))))),
actionButton(inputId = "WEATHER_goInput", label = "Update"),
radioButtons(inputId = "plotextInput",
label = "Plot Ext.",
choices = c("pdf", "png"),
selected = "pdf")
),
# Show a plot of the generated distribution
mainPanel(
plotOutput(outputId = "WEATHER_Plot"),
downloadButton(outputId = "WEATHER_downPlot",
label = "Download the plot"),
downloadButton(outputId = "WEATHER_downdata",
label = "Download the data"),
downloadButton(outputId = "WEATHER_downsummarytable",
label = "Download the summary table"),
tableOutput(outputId = "WEATHER_summarytable")
)
)
)
)