-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
170 lines (158 loc) · 7.99 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
##############################
# Shiny App: MOGO
# User interface
##############################
shinyUI(fluidPage(
theme = shinytheme("united"),
titlePanel("sémogéo : Les mots-clés des géographes en réseaux",
tags$head(tags$link(rel = "icon", type = "image/png", href = "favicon.png"),
tags$title("sémogéo : Les mots-clés des géographes en réseaux"),
includeScript('www/analytics.js'))
),
tabsetPanel(
tabPanel("Guide d'utilisation",
withMathJax(),
fluidRow(
column(2),
column(7, includeMarkdown("README.md")))
),
tabPanel("Résumé de l'information",
fluidRow(
column(3, selectInput(inputId = "editionres",
label = "Choisir une édition du RG",
choices = c("RG1973", "RG1980", "RG1989", "RG1998", "RG2007"),
selected = "RG2007",
multiple = FALSE))),
tags$hr(),
htmlOutput("textfull"),
tags$hr(),
tags$h4("Information sur les noeuds"),
tags$hr(),
dataTableOutput("contentsnodes"),
tags$hr(),
tags$h4("Information sur les arcs"),
tags$hr(),
dataTableOutput("contentsedges")
),
tabPanel("Communautés",
fluidRow(
column(4, selectInput(inputId = "editioncom",
label = "Choisir une édition du RG",
choices = c("RG1973", "RG1980", "RG1989", "RG1998", "RG2007"),
selected = "RG2007",
multiple = FALSE)),
column(4, selectInput(inputId = "commid",
label = "Choisir une communauté",
choices = "",
selected = "",
multiple = FALSE))),
fluidRow(
column(12,
fluidRow(
column(3, wellPanel(
tags$strong("Réglages graphiques"),
radioButtons("vsizecom", "Proportionnalité des noeuds",
list("Uniforme" = "uni",
"Nombre d'auteurs" = "poi",
"Degré des noeuds" = "deg")),
radioButtons("esizecom", "Proportionnalité des liens",
list("Résidus relatifs" = "rel",
"Nombre de liens" = "nbl")),
sliderInput(inputId = "vfacsizecom",
label = "Taille des noeuds",
min = 0,
max = 1,
value = 0.5,
step = 0.05),
sliderInput(inputId = "efacsizecom",
label = "Taille des liens",
min = 0,
max = 2,
value = 1,
step = 0.1),
sliderInput(inputId = "tsizecom",
label = "Taille de police",
min = 1,
max = 15,
value = 10,
step = 1),
downloadButton("downcomm", "Download plot"))),
column(9, plotOutput("plotcomm", width = "100%", height = "800px")))))
),
tabPanel("Réseau d'ego",
fluidRow(
column(4, selectInput(inputId = "editionego",
label = "Choisir une édition du RG",
choices = c("RG1973", "RG1980", "RG1989", "RG1998", "RG2007"),
selected = "RG2007",
multiple = FALSE)),
column(4, selectInput(inputId = "kwid1",
label = "Choisir un mot-clef",
choices = "",
selected = "",
multiple = FALSE))),
fluidRow(
column(12,
fluidRow(
column(3, wellPanel(
tags$strong("Réglages graphiques"),
radioButtons("vsizeego", "Proportionnalité des noeuds",
list("Uniforme" = "uni",
"Nombre d'auteurs" = "poi",
"Degré des noeuds" = "deg")),
sliderInput(inputId = "vfacsizeego",
label = "Taille des noeuds",
min = 0,
max = 1,
value = 0.5,
step = 0.05),
sliderInput(inputId = "tsizeego",
label = "Taille de police",
min = 1,
max = 15,
value = 10,
step = 1),
sliderInput(inputId = "esizeego",
label = "Taille des liens",
min = 0,
max = 2,
value = 1,
step = 0.1),
downloadButton("downego", "Download plot"))),
column(9, plotOutput("plotego", width = "100%", height = "800px")))))
),
tabPanel("Aire sémantique",
fluidRow(
column(4, selectInput(inputId = "editionsem",
label = "Choisir une édition du RG",
choices = c("RG1973", "RG1980", "RG1989", "RG1998", "RG2007"),
selected = "RG2007",
multiple = FALSE)),
column(4, selectInput(inputId = "kwid2",
label = "Choisir un mot-clef",
choices = "",
selected = "",
multiple = FALSE))),
fluidRow(
column(12,
fluidRow(
column(3, wellPanel(
tags$strong("Réglages graphiques"),
sliderInput(inputId = "tsizesemmin",
label = "Taille de police (min)",
min = 1,
max = 10,
value = 4,
step = 0.5),
sliderInput(inputId = "tsizesemmax",
label = "Taille de police (max)",
min = 1,
max = 10,
value = 6,
step = 0.5),
downloadButton("downsem", "Download plot"))),
column(9, plotOutput("plotsem", width = "100%", height = "800px")))))
)
)
)
)