-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
156 lines (149 loc) · 6.09 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
library(shinydashboard)
library(DT)
dashboardPage(
skin = 'green',
dashboardHeader(title = "R-Statisticum"),
dashboardSidebar(
sidebarMenu(
menuItem("Choisir les données", tabName = "choose_data", icon = icon("database")),
menuItem("Etude Univarié", tabName = "univariate", icon = icon("dice-one")),
menuItem("Etude Bivarié", tabName = "bivariate", icon = icon("dice-two")),
menuItem("Prédiction", tabName = "prediction", icon = icon("dice-three")),
menuItem("Etude Générale", tabName = "general", icon = icon("dice-four")),
menuItem("A propos", tabName = "about", icon = icon("address-card"))
)
),
dashboardBody(
tabItems(
tabItem(
tabName = "choose_data",
box(
width = 12,
fileInput("getFile", "Choisir le fichier CSV",
accept = c(
"text/csv",
"text/comma-separated-values,text/plain",
".csv")
),
tags$hr(),
checkboxInput("header", "Entete", TRUE)
),
),
tabItem(
tabName = "univariate",
fluidRow(
box(
width=12,
title = "Univariate",
uiOutput("variableUni"),
checkboxInput("uniCateg", "Variable qualitative")
),
),
fluidRow(
column(width = 12,
tabsetPanel(type = "tabs",
tabPanel("Plots", plotOutput("plot1")),
tabPanel("Summary", DTOutput("summary")),
tabPanel("Table", DTOutput("table"))
))
)
),
tabItem(tabName = "bivariate",
fluidRow(
box(
width=12,
title = "Bivariate",
uiOutput("variableBi1"),
checkboxInput("var1Bi", "Variable 1 qualitative"),
uiOutput("variableBi2"),
checkboxInput("var2Bi", "Variable 2 qualitative"),
),),
fluidRow(
column(width = 12,
tabsetPanel(type = "tabs",
tabPanel("Plots", column(
width=12,
plotOutput("plot1Bi"),
plotOutput("plot1BiLog"),
)),
tabPanel("Summary", column(
width=12,
tableOutput("summaryBi"),
textOutput("correlation")
)),
tabPanel("Table", DTOutput("tableBi"))
))
)
),
tabItem(tabName = "prediction",
fluidRow(
box(
width=12,
title = "Prediction",
uiOutput("predictionVariablesUI"),
uiOutput("targetVariableUI"),
checkboxInput("targetVar", "La variable cible est qualitative"),
actionButton("learningButton", "Lancer l'entraînement"),
),),
fluidRow(
column(width = 12,
tabsetPanel(type = "tabs",
tabPanel("Arbre", column(
width=12,
plotOutput("treePlot"),
h3("Prédire des individus"),
h5("Selectionner les individus et cliquer sur le bouton pour faire la prédiction:"),
DTOutput("treePredictTable"),
actionButton("treePredictButton", "Faire la prédiction"),
verbatimTextOutput("treePredictResult"),
h3("Résume du modèle"),
verbatimTextOutput("treeText"),
)),
tabPanel("Regression", column(
width=12,
h3("Résume du modèle"),
verbatimTextOutput("regText"),
h3("Prédire des individus"),
h5("Selectionner les individus et cliquer sur le bouton pour faire la prédiction:"),
DTOutput("regPredictTable"),
actionButton("regPredictButton", "Faire la prédiction"),
verbatimTextOutput("regPredictResult"),
)),
))
)
),
tabItem(
tabName = "general",
fluidRow(
box(
width=12,
title = "General Study",
),
),
fluidRow(
column(width = 12,
tabsetPanel(type = "tabs",
tabPanel("Correlation Heat Map",
uiOutput("corrType"),
plotOutput("heatMap")),
))
)
),
tabItem(
tabName = 'about',
box(
width = 12,
h3("R-Statisticum: Outils d'exploration des données."),
p("Cette application a été développé dans le cadre de projet du module 'Accompagnement', master AMSD de l'université de Paris."),
strong("- BENABED Youcef"),
br(),
strong("- KOURTA Smail"),
br(),
strong("- MOUACI Youcef"),br(),
br(),
a("Lien vers Github", href="https://github.com/skourta/r-statisticum")
)
)
),
)
)