-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
23 lines (22 loc) · 854 Bytes
/
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
library(shiny)
library(reactable)
library(dplyr)
library(ggplot2)
library(ggrepel)
library(hrbrthemes)
afl_df <- read.csv("player_stats_2023.csv", stringsAsFactors = FALSE)
afl_tog <- read.csv("player_disp_tog.csv") %>% filter(season == 2023)
ui <- fluidPage(
titlePanel("AFL Disposals"),
mainPanel(
h5("Data scraped using fitZroy package. ShinyApp by TAlbTree"),
h6(tags$a(href="https://github.com/albtree/afl_disposals_by_week",
"albtree/afl_disposals_by_week")),
reactableOutput("table"),
h3("Time on Ground Percentage vs Mean Disposals Plot"),
h4("Season: 2023"),
h5("Top left = Efficient at attaining disposals when on ground"),
h5("Bottom right = Inefficient at attaining disposals when on ground"),
uiOutput("team.nameOutput"),
br(),
plotOutput("tog_disp_plot")))