-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
60 lines (56 loc) · 2.32 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
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(DT)
library(shinydashboard)
shinyUI(dashboardPage(skin="green",
dashboardHeader(title = "Examining French Baccalaureat Passing Rates",
titleWidth = 460),
dashboardSidebar(
sidebarMenu(
menuItem("About",tabName = "about",icon = icon("info-circle")),
menuItem("National-Level",tabName = "map",icon = icon("map")),
menuItem("Department-Level",tabName = "data",icon = icon("database")),
menuItem("Lycee-Level",tabName = "data6", icon = icon("database"))
)
),
dashboardBody(
tabItems(
tabItem(tabName = "about",h3("Context, Data and Author"),
column(width=1),
column(width = 8),
includeMarkdown("Intro.Rmd"),
column(width=3)),
tabItem(tabName = "data6", h3("Lycee Data: Student Distribution & Passing Rates"),
DT::dataTableOutput("table")),
tabItem(tabName = "map",
fluidRow(
column(width=6,h3("Overiew at National Level"))),
fluidRow(column(width=5)),
fluidRow(
column(width=3,offset=1,selectizeInput('exam',label = NULL, choices = L1))),
fluidRow(column(width = 5)),
fluidRow(
column(width = 5,leafletOutput("map2", width = "100%", height = "400px"))
),
fluidRow(
uiOutput("minBox"),
uiOutput("avgBox"),
uiOutput("maxBox"))
),
tabItem(tabName = "data", h3("Key Statistics by Departement"),
fluidRow(),
selectizeInput('Departements', label = NULL, choices = L,options = list(placeholder = 'Type a Departement name')),
column(width = 5,plotOutput("box1", width = "106%", height = "310px")),
column(width = 5,plotOutput("box2", width = "110%", height = "310px")),
column(width= 5,plotOutput("box3",width = "106%", height = "310px")),
column(width=5, plotOutput("bar1",width = "110%", height = "310px")))
)
))
)