igroffman commited on
Commit
d950f21
·
verified ·
1 Parent(s): 5646fb2

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +9 -9
app.R CHANGED
@@ -3015,7 +3015,7 @@ draw_header <- function() {
3015
  }
3016
 
3017
  ## --- EMBEDDED LOGO LINKS ---
3018
- left_logo_url <- "https://i.ibb.co/zjTu3JS/CCU-logo.png"
3019
  right_logo_url <- "https://i.ibb.co/cXLKLvm5/NCAA-logo.jpg"
3020
 
3021
  draw_logo_url(left_logo_url, 0.05, "left")
@@ -3052,10 +3052,10 @@ draw_header <- function() {
3052
  grid.table(raw_table, rows = NULL, theme = ttheme_green)
3053
  popViewport()
3054
 
3055
- pushViewport(viewport(x = 0.28, y = 0.72, width = 0.50, height = 0.30)); print(plot_ball_lhb, newpage = FALSE); popViewport()
3056
- pushViewport(viewport(x = 0.72, y = 0.72, width = 0.50, height = 0.30)); print(plot_ball_rhb, newpage = FALSE); popViewport()
3057
- pushViewport(viewport(x = 0.28, y = 0.50, width = 0.50, height = 0.30)); print(plot_strike_lhb, newpage = FALSE); popViewport()
3058
- pushViewport(viewport(x = 0.72, y = 0.50, width = 0.50, height = 0.30)); print(plot_strike_rhb, newpage = FALSE); popViewport()
3059
 
3060
  grid.text("Adjusted Score", y = 0.25, gp = gpar(fontsize = 11, fontface = "bold"))
3061
  pushViewport(viewport(x = 0.5, y = 0.215, width = 0.58, height = 0.045))
@@ -3067,10 +3067,10 @@ draw_header <- function() {
3067
  grid::grid.text("Data: TrackMan | Report Generated: Coastal Carolina Baseball Analytics",
3068
  x = 0.5, y = 0.02, gp = grid::gpar(cex = 0.75, col = "grey50"))
3069
 
3070
- pushViewport(viewport(x = 0.28, y = 0.88, width = 0.50, height = 0.30)); print(plot_ball_ccu, newpage = FALSE); popViewport()
3071
- pushViewport(viewport(x = 0.72, y = 0.88, width = 0.50, height = 0.30)); print(plot_ball_opp, newpage = FALSE); popViewport()
3072
- pushViewport(viewport(x = 0.28, y = 0.68, width = 0.50, height = 0.30)); print(plot_strike_ccu, newpage = FALSE); popViewport()
3073
- pushViewport(viewport(x = 0.72, y = 0.68, width = 0.50, height = 0.30)); print(plot_strike_opp, newpage = FALSE); popViewport()
3074
 
3075
  if (nrow(MissedCalls) > 0) {
3076
  page_chunks <- split(MissedCalls, ceiling(seq_len(nrow(MissedCalls)) / rows_per_page))
 
3015
  }
3016
 
3017
  ## --- EMBEDDED LOGO LINKS ---
3018
+ left_logo_url <- "https://i.imgur.com/zjTu3JS.png"
3019
  right_logo_url <- "https://i.ibb.co/cXLKLvm5/NCAA-logo.jpg"
3020
 
3021
  draw_logo_url(left_logo_url, 0.05, "left")
 
3052
  grid.table(raw_table, rows = NULL, theme = ttheme_green)
3053
  popViewport()
3054
 
3055
+ pushViewport(viewport(x = 0.28, y = 0.70, width = 0.50, height = 0.30)); print(plot_ball_lhb, newpage = FALSE); popViewport()
3056
+ pushViewport(viewport(x = 0.72, y = 0.70, width = 0.50, height = 0.30)); print(plot_ball_rhb, newpage = FALSE); popViewport()
3057
+ pushViewport(viewport(x = 0.28, y = 0.48, width = 0.50, height = 0.30)); print(plot_strike_lhb, newpage = FALSE); popViewport()
3058
+ pushViewport(viewport(x = 0.72, y = 0.48, width = 0.50, height = 0.30)); print(plot_strike_rhb, newpage = FALSE); popViewport()
3059
 
3060
  grid.text("Adjusted Score", y = 0.25, gp = gpar(fontsize = 11, fontface = "bold"))
3061
  pushViewport(viewport(x = 0.5, y = 0.215, width = 0.58, height = 0.045))
 
3067
  grid::grid.text("Data: TrackMan | Report Generated: Coastal Carolina Baseball Analytics",
3068
  x = 0.5, y = 0.02, gp = grid::gpar(cex = 0.75, col = "grey50"))
3069
 
3070
+ pushViewport(viewport(x = 0.28, y = 0.86, width = 0.50, height = 0.30)); print(plot_ball_ccu, newpage = FALSE); popViewport()
3071
+ pushViewport(viewport(x = 0.72, y = 0.86, width = 0.50, height = 0.30)); print(plot_ball_opp, newpage = FALSE); popViewport()
3072
+ pushViewport(viewport(x = 0.28, y = 0.66, width = 0.50, height = 0.30)); print(plot_strike_ccu, newpage = FALSE); popViewport()
3073
+ pushViewport(viewport(x = 0.72, y = 0.66, width = 0.50, height = 0.30)); print(plot_strike_opp, newpage = FALSE); popViewport()
3074
 
3075
  if (nrow(MissedCalls) > 0) {
3076
  page_chunks <- split(MissedCalls, ceiling(seq_len(nrow(MissedCalls)) / rows_per_page))