igroffman commited on
Commit
3dfa94e
·
verified ·
1 Parent(s): 20348f0

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +5 -5
app.R CHANGED
@@ -1490,7 +1490,7 @@ create_bullpen_location_plot <- function(pitcher_df, pitch_colors) {
1490
  color = "gray50", linetype = "dashed", linewidth = 0.3) +
1491
  annotate("polygon", x = c(-0.708, 0.708, 0.708, 0, -0.708),
1492
  y = c(0.15, 0.15, 0.30, 0.50, 0.30), fill = NA, color = "black", linewidth = 0.5) +
1493
- geom_point(aes(fill = TaggedPitchType), size = 3.5, shape = 21,
1494
  color = "black", stroke = 0.5, alpha = 0.85) +
1495
  scale_fill_manual(values = pitch_colors, name = "Pitch") +
1496
  coord_fixed(xlim = c(-2.2, 2.2), ylim = c(0, 4.2)) +
@@ -1528,9 +1528,9 @@ create_bullpen_movement_plot <- function(pitcher_df, pitcher_name, pitch_colors)
1528
  geom_point(aes(fill = TaggedPitchType), alpha = 0.85, shape = 21,
1529
  color = "black", stroke = 0.4, size = 4.5) +
1530
  geom_point(data = centers, aes(x = mean_hb, y = mean_ivb, fill = TaggedPitchType),
1531
- alpha = 1, shape = 21, color = "black", stroke = 0.5, size = 8) +
1532
  geom_text(data = centers, aes(x = mean_hb, y = mean_ivb, label = mean_velo),
1533
- color = "black", size = 4, vjust = 0.5, fontface = "bold") +
1534
  scale_fill_manual(values = pitch_colors) +
1535
  coord_fixed(ratio = 1, xlim = c(-27.5, 27.5), ylim = c(-27.5, 27.5)) +
1536
  labs(title = "Movement Profile", x = "Horizontal Break (in)", y = "Induced Vertical Break (in)") +
@@ -1562,9 +1562,9 @@ create_bullpen_release_plot <- function(pitcher_df, pitcher_name, pitch_colors)
1562
 
1563
  ggplot() +
1564
  geom_point(data = df, aes(RelSide, RelHeight, fill = TaggedPitchType),
1565
- size = 4, shape = 21, color = "black", alpha = 0.85, stroke = 0.25) +
1566
  geom_point(data = avg_release, aes(RelSide, RelHeight, fill = TaggedPitchType),
1567
- size = 5, shape = 21, color = "black", stroke = 0.3, alpha = 1) +
1568
  annotate("text", x = -5, y = 8, label = "\u2190 1B", size = 3, hjust = 0) +
1569
  annotate("text", x = 5, y = 8, label = "3B \u2192", size = 3, hjust = 1) +
1570
  geom_rect(aes(xmin = -5, xmax = 5, ymin = 0, ymax = 0.83),
 
1490
  color = "gray50", linetype = "dashed", linewidth = 0.3) +
1491
  annotate("polygon", x = c(-0.708, 0.708, 0.708, 0, -0.708),
1492
  y = c(0.15, 0.15, 0.30, 0.50, 0.30), fill = NA, color = "black", linewidth = 0.5) +
1493
+ geom_point(aes(fill = TaggedPitchType), size = 3, shape = 21,
1494
  color = "black", stroke = 0.5, alpha = 0.85) +
1495
  scale_fill_manual(values = pitch_colors, name = "Pitch") +
1496
  coord_fixed(xlim = c(-2.2, 2.2), ylim = c(0, 4.2)) +
 
1528
  geom_point(aes(fill = TaggedPitchType), alpha = 0.85, shape = 21,
1529
  color = "black", stroke = 0.4, size = 4.5) +
1530
  geom_point(data = centers, aes(x = mean_hb, y = mean_ivb, fill = TaggedPitchType),
1531
+ alpha = 1, shape = 21, color = "black", stroke = 0.5, size = 4) +
1532
  geom_text(data = centers, aes(x = mean_hb, y = mean_ivb, label = mean_velo),
1533
+ color = "black", size = 2, vjust = 0.5, fontface = "bold") +
1534
  scale_fill_manual(values = pitch_colors) +
1535
  coord_fixed(ratio = 1, xlim = c(-27.5, 27.5), ylim = c(-27.5, 27.5)) +
1536
  labs(title = "Movement Profile", x = "Horizontal Break (in)", y = "Induced Vertical Break (in)") +
 
1562
 
1563
  ggplot() +
1564
  geom_point(data = df, aes(RelSide, RelHeight, fill = TaggedPitchType),
1565
+ size = 2, shape = 21, color = "black", alpha = 0.85, stroke = 0.25) +
1566
  geom_point(data = avg_release, aes(RelSide, RelHeight, fill = TaggedPitchType),
1567
+ size = 3, shape = 21, color = "black", stroke = 0.3, alpha = 1) +
1568
  annotate("text", x = -5, y = 8, label = "\u2190 1B", size = 3, hjust = 0) +
1569
  annotate("text", x = 5, y = 8, label = "3B \u2192", size = 3, hjust = 1) +
1570
  geom_rect(aes(xmin = -5, xmax = 5, ymin = 0, ymax = 0.83),