igroffman commited on
Commit
5439398
·
verified ·
1 Parent(s): b0c7485

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -1510,9 +1510,9 @@ create_tableau_location_plot <- function(pitcher_df, pitch_colors) {
1510
  geom_point(aes(color = TaggedPitchType, shape = ResultDisplay), size = 2.6, stroke = 0.85) +
1511
  scale_color_manual(values = pitch_colors, name = "Pitch") +
1512
  scale_shape_manual(
1513
- values = c("Ball" = 1, "2B" = 18, "Foul" = 2, "HBP" = 8,
1514
  "Sac" = 3, "1B" = 19, "Called" = 5, "Whiff" = 8,
1515
- "3B" = 17, "HR" = 18, "Out" = 4, "Other" = 16),
1516
  name = "Result"
1517
  ) +
1518
  coord_fixed(xlim = c(-2.2, 2.2), ylim = c(0, 4.2)) +
 
1510
  geom_point(aes(color = TaggedPitchType, shape = ResultDisplay), size = 2.6, stroke = 0.85) +
1511
  scale_color_manual(values = pitch_colors, name = "Pitch") +
1512
  scale_shape_manual(
1513
+ values = c("Ball" = 1, "2B" = 18, "Foul" = 2, "HBP" = 10,
1514
  "Sac" = 3, "1B" = 19, "Called" = 5, "Whiff" = 8,
1515
+ "3B" = 17, "HR" =15, "Out" = 4, "Other" = 16),
1516
  name = "Result"
1517
  ) +
1518
  coord_fixed(xlim = c(-2.2, 2.2), ylim = c(0, 4.2)) +