2019-05-16 00:37:48 +02:00
|
|
|
#
|
|
|
|
# Main UI File
|
|
|
|
#
|
|
|
|
|
|
|
|
# Import files
|
|
|
|
source("UI/SidebarPanel.R")
|
|
|
|
source("UI/BalanceComponent.R")
|
|
|
|
|
|
|
|
# UI
|
2019-05-16 01:19:22 +02:00
|
|
|
ui <- navbarPage(
|
|
|
|
title = "Football results 1872-2018",
|
|
|
|
theme = shinytheme("united"),
|
2019-05-16 00:37:48 +02:00
|
|
|
|
2019-05-16 01:19:22 +02:00
|
|
|
# Tab 1
|
2019-05-19 00:07:35 +02:00
|
|
|
tabPanel("Team statistics",
|
|
|
|
fluidRow(
|
|
|
|
column(3,
|
|
|
|
teamSidebarPanel()
|
|
|
|
),
|
|
|
|
column(9,
|
2019-06-14 22:56:24 +02:00
|
|
|
fluidRow(
|
|
|
|
column(
|
|
|
|
6,
|
2019-06-15 00:31:16 +02:00
|
|
|
h2("Matches balance chart"),
|
2019-06-14 22:56:24 +02:00
|
|
|
tabsetPanel(
|
|
|
|
tabPanel(
|
2019-06-15 00:31:16 +02:00
|
|
|
"Bar plot",
|
2019-06-14 22:56:24 +02:00
|
|
|
wellPanel(
|
|
|
|
plotOutput("balance_for_team")
|
|
|
|
)
|
2019-05-19 01:33:04 +02:00
|
|
|
)
|
|
|
|
)
|
2019-05-19 00:07:35 +02:00
|
|
|
),
|
2019-06-14 22:56:24 +02:00
|
|
|
column(
|
|
|
|
6,
|
2019-06-15 00:31:16 +02:00
|
|
|
h2("Overall statistics"),
|
|
|
|
tabsetPanel(
|
|
|
|
tabPanel(
|
|
|
|
"Summary",
|
|
|
|
wellPanel(
|
|
|
|
tableOutput("summary_statistics")
|
|
|
|
)
|
|
|
|
)
|
2019-06-14 22:56:24 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
,
|
|
|
|
fluidRow(
|
|
|
|
column(
|
|
|
|
12,
|
|
|
|
DT::dataTableOutput("matches_for_team")
|
2019-05-19 00:07:35 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)),
|
2019-05-16 00:37:48 +02:00
|
|
|
|
2019-05-16 01:19:22 +02:00
|
|
|
# Tab 2
|
|
|
|
tabPanel("Teams comparison",
|
|
|
|
fluidRow(
|
2019-05-19 00:07:35 +02:00
|
|
|
column(3,
|
2019-05-16 01:19:22 +02:00
|
|
|
teamsSidebarPanel()
|
|
|
|
),
|
2019-05-19 00:07:35 +02:00
|
|
|
column(9,
|
2019-06-14 18:32:12 +02:00
|
|
|
fluidRow(
|
|
|
|
column(
|
|
|
|
6,
|
2019-06-15 00:31:16 +02:00
|
|
|
h2("Matches balance charts"),
|
2019-06-14 18:32:12 +02:00
|
|
|
balanceComponent()
|
2019-05-19 00:07:35 +02:00
|
|
|
),
|
2019-06-14 18:32:12 +02:00
|
|
|
column(
|
|
|
|
6
|
|
|
|
)
|
|
|
|
),
|
|
|
|
fluidRow(
|
|
|
|
column(
|
|
|
|
12,
|
|
|
|
DT::dataTableOutput("results_pagination")
|
2019-05-19 00:07:35 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2019-05-16 00:37:48 +02:00
|
|
|
)
|
|
|
|
)
|
2019-06-14 18:32:12 +02:00
|
|
|
)
|
2019-05-16 00:37:48 +02:00
|
|
|
)
|