-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
52 lines (45 loc) · 1.37 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
library(shinydashboard)
library(plotly)
header <- dashboardHeader(
title = 'Decomposition by Simulated Trajectories', titleWidth = 450
)
body <- dashboardBody(
fluidRow(
column(6,
tableOutput('loopTable'),
plotlyOutput('countPlot')
),
column(3,
valueBoxOutput("rr", width = NULL),
p(class = "text-muted",
br(),
"RR = abs(average(-log(flux)) - min(-log(flux)))/std(flux)"
)
),
column(3,
box(width = NULL, status = "warning",
radioButtons('rrtype', "Type of RR",
choices = c('weight', 'flux'),
selected = 'weight'),
selectInput("interval", "Refresh interval",
choices = c(
"2 seconds" = 2,
"5 seconds" = 5,
"30 seconds" = 30,
"1 minute" = 60,
"2 minutes" = 120,
"10 minutes" = 600
),
selected = "5"
),
uiOutput("timeSinceLastUpdate"),
actionButton("refresh", "Refresh now")
)
)
)
)
dashboardPage(
header,
dashboardSidebar(disable = T),
body
)