-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
96 lines (92 loc) · 3.17 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
library(shiny)
library(shinydashboard)
source("dashBox.R")
source("kpiTile.R")
source("husky.R")
source("kpiContainer.R")
library(formattable)
library(timevis)
library(rintrojs)
library(htmlwidgets)
ui <- dashboardPage(
dashboardHeader(title = "Amazing Dashboard"),
dashboardSidebar(
introBox(sidebarMenu(
menuItem("Overview", tabName = "overview", icon = icon("dashboard")),
menuItem("Timeline", tabName = "timeline", icon = icon("th")),
menuItem("Detail", tabName = "detail", icon = icon("th"))
),
data.step = 1,
data.intro = "These link to the different pages."
),
tags$div(class="huskydiv",
createHusky()
),
tags$div(class="huskybutton",
actionButton("help", "Dashboard Guide"))
),
dashboardBody(
introjsUI(),
tags$script(HTML("var openTab = function(tabName){ $('a', $('.sidebar')).each(function() {if(this.getAttribute('data-value') == tabName) { this.click()};});}")),
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "style.css"),
tags$link(rel = "stylesheet", type = "text/css", href = "husky.css")
),
tabItems(
# DASHBOARD TAB
tabItem(
tabName = "overview",
fluidRow(
introBox(
createKpiContainer(
title = "Interactions",
icon = "[email protected]",
navtab = "timeline",
uiOutput("kpiTile1"),
uiOutput("kpiTile2")
),
data.step = 2,
data.intro = "This shows the interactions."
),
introBox( uiOutput("dashKPI1"),
data.step = 3,
data.intro = "This shows the activities"
),
introBox(createKpiContainer(
title = "Timeliness",
icon = "[email protected]",
uiOutput("kpiTile5"),
uiOutput("kpiTile6")
),
data.step = 4,
data.intro = "This shows the timeliness"
),
introBox(createKpiContainer(
title = "Outcomes",
icon = "[email protected]",
uiOutput("kpiTile7"),
uiOutput("kpiTile8")
),
data.step = 5,
data.intro = "ggplot2 by Hadley Wickham is an excellent and flexible package for elegant data visualization in R. However the default generated plots requires some formatting before we can send them for publication. Furthermore, to customize a ggplot, the syntax is opaque and this raises the level of difficulty for researchers with no advanced R programming skills.
The 'ggpubr' package provides some easy-to-use functions for creating and customizing 'ggplot2'- based publication ready plots."
)
),
fluidRow(
column(width = 12,
tags$div(
class = "cw-container",
checked = NA,
formattableOutput("table"))
)
)),
tabItem(tabName = "timeline", fluidRow(
introBox(timevisOutput("timelineVis"),
data.step = 6,
data.intro = "This shows the activities"
)
)),
tabItem(tabName = "detail", fluidRow())
)
)
)