TimStats commited on
Commit
dc5c9d6
·
verified ·
1 Parent(s): a3217d7

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -0
app.R CHANGED
@@ -208,9 +208,15 @@ break_plot_tot <- function(game,data1,sdate,edate) {
208
  if(pitcher_hand == "L") {
209
  leg <- c(0.08, .22)
210
  factor <- -1
 
 
 
211
  } else {
212
  leg <- c(0.92, .22)
213
  factor <- 1
 
 
 
214
  }
215
 
216
  # Calculate the endpoint coordinates
 
208
  if(pitcher_hand == "L") {
209
  leg <- c(0.08, .22)
210
  factor <- -1
211
+ if(angle_degrees < 0){
212
+ leg <- c(0.92, .22)
213
+ }
214
  } else {
215
  leg <- c(0.92, .22)
216
  factor <- 1
217
+ if(angle_degrees < 0){
218
+ leg <- c(0.08, .22)
219
+ }
220
  }
221
 
222
  # Calculate the endpoint coordinates