Spaces:
Running
Running
Update app.R
Browse files
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 =
|
| 3223 |
tryCatch(print(count_plot, newpage = FALSE), error = function(e) NULL)
|
| 3224 |
grid::popViewport()
|
| 3225 |
|
| 3226 |
-
|
| 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,
|