Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -3048,12 +3048,12 @@ buffer_pct <- paste0(sprintf("%.0f", 100 * (buffer_correct / total_call
|
|
| 3048 |
ggplot() +
|
| 3049 |
geom_rect(data = buffer_zone_rect,
|
| 3050 |
aes(xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax),
|
| 3051 |
-
fill = NA, color = "gray50", linewidth = 0.
|
| 3052 |
geom_rect(data = strike_zone_rect,
|
| 3053 |
aes(xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax),
|
| 3054 |
-
fill = NA, color = "black", linewidth = 0.
|
| 3055 |
geom_polygon(data = home_plate, aes(x = x, y = y),
|
| 3056 |
-
fill = NA, color = "gray40", linewidth = 0.
|
| 3057 |
coord_equal() +
|
| 3058 |
scale_x_continuous(limits = c(-1.8, 1.8)) +
|
| 3059 |
scale_y_continuous(limits = c(0, 4.5)) +
|
|
@@ -3081,7 +3081,7 @@ buffer_pct <- paste0(sprintf("%.0f", 100 * (buffer_correct / total_call
|
|
| 3081 |
PlateLocHeight < 3.37750, PlateLocHeight > 1.5)
|
| 3082 |
base_zone() +
|
| 3083 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3084 |
-
pch = 21, fill = "#006F71", color = "black", size =
|
| 3085 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3086 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3087 |
ggtitle(title_label)
|
|
@@ -3094,7 +3094,7 @@ buffer_pct <- paste0(sprintf("%.0f", 100 * (buffer_correct / total_call
|
|
| 3094 |
PlateLocHeight > 3.37750 | PlateLocHeight < 1.5)
|
| 3095 |
base_zone() +
|
| 3096 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3097 |
-
pch = 21, fill = "#006F71", color = "black", size =
|
| 3098 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3099 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3100 |
ggtitle(title_label)
|
|
@@ -3108,7 +3108,7 @@ buffer_pct <- paste0(sprintf("%.0f", 100 * (buffer_correct / total_call
|
|
| 3108 |
PlateLocHeight < 3.37750, PlateLocHeight > 1.5)
|
| 3109 |
base_zone() +
|
| 3110 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3111 |
-
pch = 21, fill = "#006F71", color = "black", size =
|
| 3112 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3113 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3114 |
ggtitle(title_label)
|
|
@@ -3122,7 +3122,7 @@ buffer_pct <- paste0(sprintf("%.0f", 100 * (buffer_correct / total_call
|
|
| 3122 |
PlateLocHeight > 3.37750 | PlateLocHeight < 1.5)
|
| 3123 |
base_zone() +
|
| 3124 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3125 |
-
pch = 21, fill = "#006F71", color = "black", size =
|
| 3126 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3127 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3128 |
ggtitle(title_label)
|
|
|
|
| 3048 |
ggplot() +
|
| 3049 |
geom_rect(data = buffer_zone_rect,
|
| 3050 |
aes(xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax),
|
| 3051 |
+
fill = NA, color = "gray50", linewidth = 0.4, linetype = "dotted") +
|
| 3052 |
geom_rect(data = strike_zone_rect,
|
| 3053 |
aes(xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax),
|
| 3054 |
+
fill = NA, color = "black", linewidth = 0.4) +
|
| 3055 |
geom_polygon(data = home_plate, aes(x = x, y = y),
|
| 3056 |
+
fill = NA, color = "gray40", linewidth = 0.4) +
|
| 3057 |
coord_equal() +
|
| 3058 |
scale_x_continuous(limits = c(-1.8, 1.8)) +
|
| 3059 |
scale_y_continuous(limits = c(0, 4.5)) +
|
|
|
|
| 3081 |
PlateLocHeight < 3.37750, PlateLocHeight > 1.5)
|
| 3082 |
base_zone() +
|
| 3083 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3084 |
+
pch = 21, fill = "#006F71", color = "black", size = 3) +
|
| 3085 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3086 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3087 |
ggtitle(title_label)
|
|
|
|
| 3094 |
PlateLocHeight > 3.37750 | PlateLocHeight < 1.5)
|
| 3095 |
base_zone() +
|
| 3096 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3097 |
+
pch = 21, fill = "#006F71", color = "black", size = 3) +
|
| 3098 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3099 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3100 |
ggtitle(title_label)
|
|
|
|
| 3108 |
PlateLocHeight < 3.37750, PlateLocHeight > 1.5)
|
| 3109 |
base_zone() +
|
| 3110 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3111 |
+
pch = 21, fill = "#006F71", color = "black", size = 3) +
|
| 3112 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3113 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3114 |
ggtitle(title_label)
|
|
|
|
| 3122 |
PlateLocHeight > 3.37750 | PlateLocHeight < 1.5)
|
| 3123 |
base_zone() +
|
| 3124 |
geom_point(data = pts, aes(x = PlateLocSide, y = PlateLocHeight),
|
| 3125 |
+
pch = 21, fill = "#006F71", color = "black", size = 3) +
|
| 3126 |
geom_text(data = pts, aes(x = PlateLocSide, y = PlateLocHeight, label = CallNo),
|
| 3127 |
color = "white", size = 2.2, fontface = "bold") +
|
| 3128 |
ggtitle(title_label)
|