igroffman commited on
Commit
b244a6d
·
verified ·
1 Parent(s): ebbfa30

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -3
app.R CHANGED
@@ -3219,14 +3219,14 @@ create_advanced_pitcher_pdf <- function(game_df, pitcher_name, output_file) {
3219
 
3220
  # Row 2: Count plot (left) | Release charts stacked (right)
3221
  # Count plot - moved to left side, narrower
3222
- grid::pushViewport(grid::viewport(x = 0.27, y = 35, width = 0.50, height = 20, just = c("center","top")))
3223
  tryCatch(print(count_plot, newpage = FALSE), error = function(e) NULL)
3224
  grid::popViewport()
3225
 
3226
- # RelSide vs Height (bottom right of row 2)
3227
- grid::pushViewport(grid::viewport(x = 0.77, y = count_y_top, width = 0.42, height = count_height, just = c("center","top")))
3228
  tryCatch(print(relside_height_plot, newpage = FALSE), error = function(e) NULL)
3229
  grid::popViewport()
 
3230
 
3231
  # Pitch Characteristics table
3232
  grid::grid.text("Pitch Characteristics", x = 0.5, y = y_top_char + 0.015,
 
3219
 
3220
  # Row 2: Count plot (left) | Release charts stacked (right)
3221
  # Count plot - moved to left side, narrower
3222
+ grid::pushViewport(grid::viewport(x = 0.27, y = count_y_top, width = 0.50, height = 18, just = c("center","top")))
3223
  tryCatch(print(count_plot, newpage = FALSE), error = function(e) NULL)
3224
  grid::popViewport()
3225
 
3226
+ grid::pushViewport(grid::viewport(x = 0.77, y = count_y_top - count_height * 0.55, width = 0.42, height = count_height * 0.55, just = c("center","top")))
 
3227
  tryCatch(print(relside_height_plot, newpage = FALSE), error = function(e) NULL)
3228
  grid::popViewport()
3229
+
3230
 
3231
  # Pitch Characteristics table
3232
  grid::grid.text("Pitch Characteristics", x = 0.5, y = y_top_char + 0.015,