Some refactoring
This commit is contained in:
parent
93d8ab5e5a
commit
0bbc1dbcb6
@ -86,11 +86,7 @@ balancePercentage <- function(input, output) {
|
||||
# Summary statistics
|
||||
summaryStatistics <- function(input, output) {
|
||||
output$summary_statistics <- renderTable(
|
||||
formattable(result <- goalsOverallSummary(getFilteredResultsForTeam(input), input$team),
|
||||
list(
|
||||
Home = color_tile("white", "orange")
|
||||
)
|
||||
),
|
||||
goalsOverallSummary(getFilteredResultsForTeam(input), input$team),
|
||||
width = '100%',
|
||||
rownames = TRUE
|
||||
)
|
||||
|
@ -1,17 +0,0 @@
|
||||
# Balance component
|
||||
|
||||
balanceComponent <- function()
|
||||
{
|
||||
tabsetPanel(
|
||||
tabPanel("Bar graph",
|
||||
wellPanel(
|
||||
plotOutput("balance")
|
||||
)
|
||||
),
|
||||
tabPanel("Pie chart",
|
||||
wellPanel(
|
||||
plotOutput("balancePieChart")
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
12
UI/UI.R
12
UI/UI.R
@ -4,7 +4,6 @@
|
||||
|
||||
# Import files
|
||||
source("UI/SidebarPanel.R")
|
||||
source("UI/BalanceComponent.R")
|
||||
|
||||
# UI
|
||||
ui <- navbarPage(
|
||||
@ -62,13 +61,18 @@ ui <- navbarPage(
|
||||
),
|
||||
column(9,
|
||||
fluidRow(
|
||||
h2("Matches balance charts"),
|
||||
column(
|
||||
6,
|
||||
h2("Matches balance charts"),
|
||||
balanceComponent()
|
||||
wellPanel(
|
||||
plotOutput("balance")
|
||||
)
|
||||
),
|
||||
column(
|
||||
6
|
||||
6,
|
||||
wellPanel(
|
||||
plotOutput("balancePieChart")
|
||||
)
|
||||
)
|
||||
),
|
||||
fluidRow(
|
||||
|
Loading…
Reference in New Issue
Block a user