Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -4456,7 +4456,7 @@ message("==================================================")
|
|
| 4456 |
# Title in center
|
| 4457 |
grid::grid.text(paste(pitcher_name, "- Advanced Pitcher Report"),
|
| 4458 |
x = 0.5, y = 0.5,
|
| 4459 |
-
gp = grid::gpar(fontface = "bold", cex = 1.8, col = "
|
| 4460 |
|
| 4461 |
# Add team logo on the right if available (mirror)
|
| 4462 |
if (!is.null(logo_path) && file.exists(logo_path)) {
|
|
@@ -4467,7 +4467,7 @@ message("==================================================")
|
|
| 4467 |
|
| 4468 |
# Summary section
|
| 4469 |
grid::grid.text("Summary", x = 0.5, y = 0.92,
|
| 4470 |
-
gp = grid::gpar(fontface = "bold", cex = 1.1, col = "
|
| 4471 |
|
| 4472 |
summary_headers <- names(summary_stats)
|
| 4473 |
summary_values <- as.numeric(summary_stats[1, ])
|
|
@@ -4480,7 +4480,7 @@ message("==================================================")
|
|
| 4480 |
|
| 4481 |
for (i in seq_along(summary_headers)) {
|
| 4482 |
grid::grid.rect(x = x_pos[i], y = y_top, width = summary_widths[i]*0.985, height = row_h,
|
| 4483 |
-
just = c("left","top"), gp = grid::gpar(fill = "
|
| 4484 |
grid::grid.text(summary_headers[i],
|
| 4485 |
x = x_pos[i] + summary_widths[i]*0.49, y = y_top - row_h*0.5,
|
| 4486 |
gp = grid::gpar(col = "white", cex = 0.62, fontface = "bold"))
|
|
|
|
| 4456 |
# Title in center
|
| 4457 |
grid::grid.text(paste(pitcher_name, "- Advanced Pitcher Report"),
|
| 4458 |
x = 0.5, y = 0.5,
|
| 4459 |
+
gp = grid::gpar(fontface = "bold", cex = 1.8, col = "red"))
|
| 4460 |
|
| 4461 |
# Add team logo on the right if available (mirror)
|
| 4462 |
if (!is.null(logo_path) && file.exists(logo_path)) {
|
|
|
|
| 4467 |
|
| 4468 |
# Summary section
|
| 4469 |
grid::grid.text("Summary", x = 0.5, y = 0.92,
|
| 4470 |
+
gp = grid::gpar(fontface = "bold", cex = 1.1, col = "red"))
|
| 4471 |
|
| 4472 |
summary_headers <- names(summary_stats)
|
| 4473 |
summary_values <- as.numeric(summary_stats[1, ])
|
|
|
|
| 4480 |
|
| 4481 |
for (i in seq_along(summary_headers)) {
|
| 4482 |
grid::grid.rect(x = x_pos[i], y = y_top, width = summary_widths[i]*0.985, height = row_h,
|
| 4483 |
+
just = c("left","top"), gp = grid::gpar(fill = "red", col = "black", lwd = 0.5))
|
| 4484 |
grid::grid.text(summary_headers[i],
|
| 4485 |
x = x_pos[i] + summary_widths[i]*0.49, y = y_top - row_h*0.5,
|
| 4486 |
gp = grid::gpar(col = "white", cex = 0.62, fontface = "bold"))
|