TPD-InternationalFootballRe.../UI/UI.R
2019-06-15 00:31:16 +02:00

84 lines
2.0 KiB
R

#
# Main UI File
#
# Import files
source("UI/SidebarPanel.R")
source("UI/BalanceComponent.R")
# UI
ui <- navbarPage(
title = "Football results 1872-2018",
theme = shinytheme("united"),
# Tab 1
tabPanel("Team statistics",
fluidRow(
column(3,
teamSidebarPanel()
),
column(9,
fluidRow(
column(
6,
h2("Matches balance chart"),
tabsetPanel(
tabPanel(
"Bar plot",
wellPanel(
plotOutput("balance_for_team")
)
)
)
),
column(
6,
h2("Overall statistics"),
tabsetPanel(
tabPanel(
"Summary",
wellPanel(
tableOutput("summary_statistics")
)
)
)
)
)
,
fluidRow(
column(
12,
DT::dataTableOutput("matches_for_team")
)
)
)
)),
# Tab 2
tabPanel("Teams comparison",
fluidRow(
column(3,
teamsSidebarPanel()
),
column(9,
fluidRow(
column(
6,
h2("Matches balance charts"),
balanceComponent()
),
column(
6
)
),
fluidRow(
column(
12,
DT::dataTableOutput("results_pagination")
)
)
)
)
)
)