-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
37 lines (31 loc) · 1.09 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
data_path = "./hourly_distance_matrix/"
house_list = list.dirs(data_path, full.names = FALSE, recursive = FALSE)
# exclude the first dir which is current directory itself.
house_list = house_list[1:length(house_list)]
shinyUI(fluidPage(
titlePanel("KYAB - Anomaly Detection!"),
fluidRow(
column(2,
selectInput("house",
label = h5("Select a house"),
choices = house_list)
),
column(2,
selectInput("sensor",
label = h5("Select a sensor"),
choices = ""),
checkboxInput("plotallsensor", "Plot all sensor ", value = FALSE),
checkboxInput("plotcorrelation", "Plot correlation matrix ", value = FALSE)
)
),
hr(),
plotOutput("anomalyPlot"),
plotOutput("allDataPlot"),
plotOutput("correlationPlot")
))