Spaces:
Running
Running
Update app.R
Browse files
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" =
|
| 1514 |
"Sac" = 3, "1B" = 19, "Called" = 5, "Whiff" = 8,
|
| 1515 |
-
"3B" = 17, "HR" =
|
| 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)) +
|