igroffman commited on
Commit
501bd0e
·
verified ·
1 Parent(s): 4549e96

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +8 -5
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
- grid::grid.text(display_val,
4314
- x = x_pos_char[i] + char_widths[i]*0.49, y = y_row - row_h_char*0.5,
4315
- gp = grid::gpar(cex = 0.50, col = txt_col,
4316
- fontface = if (has_pitchcol && identical(colname, "Pitch")) "bold" else "plain"
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