Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -4310,11 +4310,14 @@ create_advanced_pitcher_pdf <- function(game_df, pitcher_name, output_file, logo
|
|
| 4310 |
|
| 4311 |
txt_col <- if (has_pitchcol && identical(colname, "Pitch")) .text_on_fill(bg) else "black"
|
| 4312 |
|
| 4313 |
-
|
| 4314 |
-
|
| 4315 |
-
|
| 4316 |
-
|
| 4317 |
-
|
|
|
|
|
|
|
|
|
|
| 4318 |
}
|
| 4319 |
|
| 4320 |
# Location plots
|
|
|
|
| 4310 |
|
| 4311 |
txt_col <- if (has_pitchcol && identical(colname, "Pitch")) .text_on_fill(bg) else "black"
|
| 4312 |
|
| 4313 |
+
grid::grid.text(display_val,
|
| 4314 |
+
x = x_pos_char[i] + char_widths[i]*0.49,
|
| 4315 |
+
y = y_row - row_h_char*0.5,
|
| 4316 |
+
gp = grid::gpar(
|
| 4317 |
+
cex = 0.50,
|
| 4318 |
+
col = txt_col,
|
| 4319 |
+
fontface = if (has_pitchcol && identical(colname, "Pitch")) "bold" else "plain"
|
| 4320 |
+
}
|
| 4321 |
}
|
| 4322 |
|
| 4323 |
# Location plots
|