-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.R
120 lines (117 loc) · 4.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
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
library(shiny)
function(request) {
shinyUI(
fluidPage(
theme = "slate-bootstrap.css",
useShinyjs(),
extendShinyjs(text = jsCode, functions = c("launchIntro", "launchUserIntro")),
tags$style(appCSS),
tags$head(
tags$link(rel = "icon", type = "image/png", href = "favicon.png"),
tags$title("TimeLineEDB"),
includeScript("www/analytics.js"),
includeScript("www/intro.min.js"),
includeCSS("www/introjs.min.css"),
includeScript("www/CustomIntro.js"),
includeCSS("www/timelineEDB.css")
),
column(11, h2("TimeLine Exploratory DashBoard")),
#column(1, bookmarkButton(label = "Sauvegarder l'état", icon = icon("save", lib = "glyphicon"))),
column(1, actionLink(
"mainHelp",
label = "",
icon(
name = "question-circle", class = "fa-3x", lib = "font-awesome"
)
)),
fluidRow(
column(4, plotOutput(
"daydensity", brush = brushOpts(id = "daydensity_brush", direction = "x", resetOnNew = FALSE)
) %>% withSpinner(type = 7, color = "#4BB9DB")),
column( 8, leafletOutput("map", height = "450px")
)
),
tags$br(),
fluidRow(
column(4,
plotOutput(
"dayfreq", brush = brushOpts(id = "dayfreq_brush", direction = "x", resetOnNew = FALSE)
) %>% withSpinner(type = 7, color = "#4BB9DB")),
column(4, plotOutput(
"monthfreq", brush = brushOpts(id = "monthfreq_brush", direction = "x", resetOnNew = FALSE)
) %>% withSpinner(type = 7, color = "#4BB9DB")),
column(
4,
fluidRow(
wellPanel(
id = "automaticAnalysis",
h3("Analyse automatique"),
checkboxInput("revGeoCode", "Lancer les analyses"),
"D'après analyse automatique de vos données, on peut inférer ces informations vous concernant :",
tags$hr(),
tags$ul(
tags$li(
"Adresse (approximative) de résidence :",
actionLink("analysisHome", textOutput("homeAddress", inline = TRUE))
),
tags$br(),
tags$li(
"Adresse (approximative) de travail :",
actionLink("analysisWork", textOutput("workAddress", inline = TRUE))
)
)
)
),
fluidRow(
tags$input(id = "userSettings", type = "checkbox", class = "inv-checkbox"),
tags$label(
'for' = "userSettings",
span("Explorez vos propres données", class = "userSettingsCheckBox btn btn-info"),
onclick = "userDataIntro();"
),
actionLink(
inputId = "userDataHelp",
label = "",
icon = icon(
name = "question-circle",
class = "fa-3x",
lib = "font-awesome"
)
)
),
fluidRow(
conditionalPanel(condition = "input.userSettings == true",
fluidRow(
column(
6,class = "loadUserDataFileInput",
fileInput(inputId = "userData",
label = "Sélectionner vos données",
multiple = FALSE,
accept = "application/zip",
width = "100%"
)
),
column(6,
withBusyIndicatorUI(
actionButton(
"loadUserData",
label = "Charger vos données",
class = "btn-info offset-top loadUserDataButton",
width = "50%",
icon = icon(name = "map", lib = "font-awesome")
)
))
))
)
)
),
fluidRow(column(
4, plotOutput("yearPlot", brush = brushOpts(
id = "yearplot_brush", direction = "x",resetOnNew = FALSE)
) %>% withSpinner(type = 7, color = "#4BB9DB")
),
column(8, plotOutput("calendarPlot") %>% withSpinner(type = 7, color = "#4BB9DB"))),
wellPanel(fluidRow(sourceHTML))
)
)
}