-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
54 lines (43 loc) · 1.6 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
library(shiny)
shinyUI(pageWithSidebar(
headerPanel("Azhar's Website Analytics"),
sidebarPanel(
dateRangeInput(inputId = "dateRange",
label = "Date range",
start = "2013-04-01",
max = Sys.Date()
),
sliderInput(inputId = "minimumTime",
label = "Hours of interest- minimum",
min = 0,
max = 23,
value = 0,
step = 1),
sliderInput(inputId = "maximumTime",
label = "Hours of interest- maximum",
min = 0,
max = 23,
value = 23,
step = 1),
checkboxInput(inputId = "smoother",
label = "Add smoother?",
value = FALSE),
checkboxGroupInput(inputId = "domainShow",
label = "Show NHS and other domain (defaults to all)?",
choices = list("NHS users" = "NHS",
"Other" = "Other")
),
radioButtons(inputId = "outputType",
label = "Output required",
choices = list("Visitors" = "visitors",
"Bounce rate" = "bounceRate",
"Time on site" = "timeOnSite"))
),
mainPanel(
tabsetPanel(
tabPanel("Summary", textOutput("textDisplay")),
tabPanel("Monthly figures", plotOutput("monthGraph")),
tabPanel("Hourly figures", plotOutput("hourGraph"))
)
)
))