Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -1672,7 +1672,7 @@ create_relside_height_plot <- function(data, player_name, pitch_colors) {
|
|
| 1672 |
labs(title = "Release Height + Release Side",
|
| 1673 |
x = "Release Side (ft)", y = "Release Height (ft)") +
|
| 1674 |
theme_minimal() +
|
| 1675 |
-
theme(plot.title = element_text(hjust = 0.5, size =
|
| 1676 |
legend.position = "none")
|
| 1677 |
}
|
| 1678 |
|
|
@@ -3219,7 +3219,7 @@ 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 |
|
|
|
|
| 1672 |
labs(title = "Release Height + Release Side",
|
| 1673 |
x = "Release Side (ft)", y = "Release Height (ft)") +
|
| 1674 |
theme_minimal() +
|
| 1675 |
+
theme(plot.title = element_text(hjust = 0.5, size = 14, face = "bold"),
|
| 1676 |
legend.position = "none")
|
| 1677 |
}
|
| 1678 |
|
|
|
|
| 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 |
|