TPD-InternationalFootballRe.../UI/UI.R

93 lines
2.3 KiB
R
Raw Normal View History

2019-05-16 00:37:48 +02:00
#
# Main UI File
#
# Import files
source("UI/SidebarPanel.R")
source("UI/BalanceComponent.R")
2019-05-19 19:05:06 +02:00
source("UI/InteractiveMapComponent.R")
2019-05-16 00:37:48 +02:00
# UI
ui <- navbarPage(
title = "Football results 1872-2018",
theme = shinytheme("united"),
2019-05-16 00:37:48 +02:00
# Tab 1
2019-05-19 00:07:35 +02:00
tabPanel("Team statistics",
fluidRow(
column(3,
teamSidebarPanel()
),
column(9,
tabsetPanel(
tabPanel(
2019-05-19 01:33:04 +02:00
"Charts",
h2("Matches balance charts"),
fluidRow(
column(6,
wellPanel(
plotOutput("balance_for_team")
)
),
column(6,
wellPanel(
verbatimTextOutput("Test")
)
)
)
2019-05-19 00:07:35 +02:00
),
tabPanel(
2019-05-19 19:05:06 +02:00
"Summary",
tableOutput("summary_statistics")
2019-05-19 00:07:35 +02:00
),
tabPanel(
"All matches",
2019-05-19 19:05:06 +02:00
dataTableOutput("matches_for_team")
2019-05-19 00:07:35 +02:00
)
)
)
)),
2019-05-16 00:37:48 +02:00
# Tab 2
tabPanel("Teams comparison",
fluidRow(
2019-05-19 00:07:35 +02:00
column(3,
teamsSidebarPanel()
),
2019-05-19 00:07:35 +02:00
column(9,
tabsetPanel(
tabPanel(
"Charts",
balanceComponent(6, 6),
fluidRow(
DT::dataTableOutput("results_pagination")
)
),
tabPanel(
"Summary"
)
)
2019-05-16 00:37:48 +02:00
)
)
),
# Tab 3
2019-05-19 19:05:06 +02:00
tabPanel("Overall",
fluidRow(
column(12,
tabsetPanel(
tabPanel(
"Map",
interactiveMapComponent(12)
),
tabPanel(
"Summary"
),
tabPanel(
"All matches"
)
))
))
2019-05-16 00:37:48 +02:00
)