Basic Pitch Stats

Pitcher

Pitch

N

Balls

Strikes

Strike_Percentage

Ball_Percentage

Foley

Changeup

18

6

12

66.67%

33.33%

Foley

Curveball

8

4

4

50.00%

50.00%

Foley

Cutter

66

26

40

60.61%

39.39%

Foley

Four-Seam

191

79

112

58.64%

41.36%

Foley

Sinker

27

10

17

62.96%

37.04%

Foley

Slider

69

42

27

39.13%

60.87%

Pitcher

Pitch

N

Balls

Strikes

Velo

Spin Rate

Vert Break

Horizontal Break

Tilt

Strike_Percentage

Ball_Percentage

Foley

Changeup

18

6

12

81.42571

2,063.547

9.763126

-4.6377828

87.91667

66.67%

33.33%

Foley

Curveball

8

4

4

77.13778

2,592.973

-0.936340

-12.0770725

127.50000

50.00%

50.00%

Foley

Cutter

66

26

40

90.30933

2,569.490

11.382964

0.7232144

176.70455

60.61%

39.39%

Foley

Four-Seam

191

79

112

91.08371

2,524.463

13.740676

4.4593781

140.02618

58.64%

41.36%

Foley

Sinker

27

10

17

90.74583

2,416.678

9.344205

12.3964570

28.33333

62.96%

37.04%

Foley

Slider

69

42

27

81.75662

2,678.901

4.144780

-11.3239926

130.65217

39.13%

60.87%

Foley_Danbury1 <- x %>%
  filter(BatterTeam == "DAN_WES", Date == "2023-06-08")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Danbury1
## # A tibble: 15 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         91.2    2406.   15       4.87             9.67
##  2 Foley   Slider            78.9    2796.  146.    -15.7              7.22
##  3 Foley   Four-Seam         91.3    2436.  184.      2.33            15.0 
##  4 Foley   Four-Seam         91.5    2596.  188.      4.06            14.3 
##  5 Foley   Four-Seam         91.6    2574.  188.      4.27            17.6 
##  6 Foley   Four-Seam         89.7    2589.  188.      2.95            15.3 
##  7 Foley   Four-Seam         90.8    2663.  188.      2.73            13.8 
##  8 Foley   Four-Seam         90.3    2557.  188.      3.32            16.1 
##  9 Foley   Four-Seam         91.1    2483.  184.      2.64            16.6 
## 10 Foley   Four-Seam         91.5    2545.  184.      2.55            14.9 
## 11 Foley   Slider            80.9    2842.  146.    -16.5              8.23
## 12 Foley   Slider            80.1    2812.  142.    -18.8              6.08
## 13 Foley   Four-Seam         91.0    2559.  184.      1.72            17.0 
## 14 Foley   Slider            79.8    2640.  146.    -16.5              8.35
## 15 Foley   Slider            80.5    2824.  139.    -20.6              5.38
Foley_Keene <- x %>%
  filter(BatterTeam == "KEE_SWA")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Keene
## # A tibble: 46 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Slider            78.1    2701. 142.    -14.3             5.44  
##  2 Foley   Four-Seam         93.5    2610. 184.      1.07           12.5   
##  3 Foley   Four-Seam         93.7    2718. 184.      1.68           12.3   
##  4 Foley   Slider            81.8    2804. 139.    -13.9             2.95  
##  5 Foley   Four-Seam         93.6    2631. 180       0.620          10.8   
##  6 Foley   Four-Seam         94.1    2557. 184.      1.31           14.7   
##  7 Foley   Four-Seam         92.7    2607. 184.      1.30           10.6   
##  8 Foley   Cutter            92.4    2573. 180       0.528           9.75  
##  9 Foley   Four-Seam         92.8    2624. 184.      0.839          12.5   
## 10 Foley   Four-Seam         93.6    2534. 188.      2.13            9.55  
## 11 Foley   Sinker            91.0    2252.  26.2     4.98            4.82  
## 12 Foley   Four-Seam         92.2    2524. 184.      1.87           17.1   
## 13 Foley   Four-Seam         92.1    2539. 191.      5.92           13.6   
## 14 Foley   Slider            80.8    2782. 131.    -18.6             0.0435
## 15 Foley   Slider            80.6    2821. 131.    -10.4             0.586 
## 16 Foley   Four-Seam         91.8    2626. 191.      4.53           11.3   
## 17 Foley   Four-Seam         89.3    2462.  18.8     7.86           11.0   
## 18 Foley   Sinker            88.9    2283.  30      13.6             9.65  
## 19 Foley   Slider            81.3    2731. 128.    -15.4            -3.19  
## 20 Foley   Four-Seam         90.6    2582. 188.      2.73           12.1   
## 21 Foley   Sinker            92.4    2424.  26.2    13.0            11.2   
## 22 Foley   Changeup          83.0    2056.  30       7.21            4.94  
## 23 Foley   Sinker            89.9    2286.  33.8    14.9             7.59  
## 24 Foley   Four-Seam         89.2    2411.  22.5     9.36           11.2   
## 25 Foley   Four-Seam         90.0    2358. 191.      4.01           12.4   
## 26 Foley   Four-Seam         91.2    2586. 188.      2.21            8.70  
## 27 Foley   Four-Seam         90.0    2514. 191.      5.22           14.6   
## 28 Foley   Slider            88.5    2291. 180       0.305           9.81  
## 29 Foley   Sinker            89.2    2181.  37.5    14.9             5.54  
## 30 Foley   Sinker            90.7    2272.  33.8    17.0             8.27  
## 31 Foley   Cutter            90.7    2483. 176.     -1.03           12.8   
## 32 Foley   Four-Seam         90.4    2446.  26.2    12.6            10.3   
## 33 Foley   Slider            79.7    2783. 135     -18.4             0.604 
## 34 Foley   Sinker            90.3    2477.  30      14.7            10.7   
## 35 Foley   Slider            89.2    2570.  18.8     5.64            7.60  
## 36 Foley   Sinker            89.8    2356.  30      12.3             8.96  
## 37 Foley   Slider            88.6    2481.  18.8     4.88            8.36  
## 38 Foley   Four-Seam         89.4    2528. 184.      1.94           13.5   
## 39 Foley   Sinker            89.8    2383.  30      13.3             9.74  
## 40 Foley   Four-Seam         88.6    2324.  22.5    10.7            13.1   
## 41 Foley   Slider            80.1    2459. 146.    -12.9             7.05  
## 42 Foley   Four-Seam         87.7    2374.  26.2    12.1            10.9   
## 43 Foley   Cutter            90.3    2392. 176.     -1.68           10.0   
## 44 Foley   Four-Seam         90.6    2601. 188.      2.82           10.4   
## 45 Foley   Slider            88.8    2324.  15       3.33            7.18  
## 46 Foley   Sinker            89.6    2295.  33.8    15.1             8.00
Foley_Sanford <- x %>%
  filter(BatterTeam == "SAN_MAI")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Sanford
## # A tibble: 12 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         88.5    2590. 184.      1.72             16.8 
##  2 Foley   Cutter            89.0    2645. 180       0.541            13.7 
##  3 Foley   Four-Seam         90.2    2788. 191.      5.09             13.9 
##  4 Foley   Cutter            91.2    2779. 191.      3.72             11.8 
##  5 Foley   Sinker            89.2    2602.  26.2     8.22              7.38
##  6 Foley   Cutter            91.0    2661. 184.      0.942            10.8 
##  7 Foley   Cutter            90.0    2632. 176.     -1.21             12.7 
##  8 Foley   Four-Seam         90.2    2702.  15       7.05             11.7 
##  9 Foley   Cutter            88.2    2550. 176.     -1.97             11.2 
## 10 Foley   Cutter            88.5    2627. 184.      0.613            10.3 
## 11 Foley   Cutter            90.8    2599. 176.     -1.14             11.8 
## 12 Foley   Cutter            88.4    2569. 172.     -2.12              9.88
Foley_OState <- x %>%
  filter(BatterTeam == "OCE_STA6")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_OState
## # A tibble: 25 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         91.9    2576. 191.      6.62            16.2  
##  2 Foley   Slider            77.7    2785. 131.    -20.5             -1.72 
##  3 Foley   Cutter            90.4    2676. 184.      1.06            10.8  
##  4 Foley   Cutter            89.3    2716. 184.      2.77            15.0  
##  5 Foley   Four-Seam         91.6    2611. 184.      2.11            15.8  
##  6 Foley   Four-Seam         91.2    2649. 191.      3.46            10.8  
##  7 Foley   Four-Seam         91.1    2478. 188.      3.17            10.6  
##  8 Foley   Cutter            92.0    2660. 184.      1.32             9.44 
##  9 Foley   Cutter            90.6    2604. 180       0.448           10.3  
## 10 Foley   Four-Seam         91.9    2656. 188.      2.59            13.2  
## 11 Foley   Cutter            89.9    2725. 180       0.702           12.8  
## 12 Foley   Cutter            90.8    2645. 191.      3.39             9.97 
## 13 Foley   Cutter            91.6    2684. 176.     -1.76            15.1  
## 14 Foley   Cutter            91.3    2729. 191.      3.24            10.1  
## 15 Foley   Four-Seam         91.9    2656. 184.      1.05            12.6  
## 16 Foley   Four-Seam         92.0    2687.  15       6.20            12.5  
## 17 Foley   Four-Seam         88.7    2500. 188.      3.43            12.4  
## 18 Foley   Curveball         74.3    2470. 131.    -18.4             -0.422
## 19 Foley   Cutter            89.7    2594. 184.      1.97            11.5  
## 20 Foley   Cutter            90.5    2658. 191.      3.23            10.4  
## 21 Foley   Cutter            90.7    2552. 176.     -1.44            10.7  
## 22 Foley   Curveball         73.7    2551. 128.    -18.1             -3.09 
## 23 Foley   Cutter            89.6    2590. 184.      1.77            12.6  
## 24 Foley   Cutter            88.5    2590. 188.      2.79            10.5  
## 25 Foley   Four-Seam         90.3    2666.  18.8     5.22             8.16
Foley_Vineyard <- x %>%
  filter(BatterTeam == "MAR_VIN") %>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak) 
Foley_Vineyard
## # A tibble: 22 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Cutter            90.5    2481. 191.      3.13           9.97   
##  2 Foley   Slider            79.1    2864. 128.    -19.0           -2.53   
##  3 Foley   Cutter            90.4    2682. 184.      2.31          13.7    
##  4 Foley   Four-Seam         91.9    2645. 188.      3.57          12.0    
##  5 Foley   Four-Seam         91.9    2548.  15       6.37          13.1    
##  6 Foley   Four-Seam         90.6    2428. 180       0.642         12.7    
##  7 Foley   Slider            79.3    2749. 142.    -16.8            4.90   
##  8 Foley   Four-Seam         93.5    2551. 180       0.526         10.5    
##  9 Foley   Cutter            90.0    2694. 184.      0.895         11.0    
## 10 Foley   Four-Seam         91.9    2711. 188.      2.88          13.2    
## 11 Foley   Four-Seam         93.3    2639. 188.      5.49          17.7    
## 12 Foley   Four-Seam         90.7    2576. 191.      6.42          15.6    
## 13 Foley   Four-Seam         91.7    2713. 191.      8.64          21.2    
## 14 Foley   Slider            78.9    2820. 139.    -18.2            2.93   
## 15 Foley   Slider            79.3    2803. 135     -21.2            2.44   
## 16 Foley   Slider            77.6    2729. 142.    -17.4            7.06   
## 17 Foley   Slider            79.6    2844. 139.    -18.3            3.48   
## 18 Foley   Four-Seam         92.9    2675.  15       3.97           7.57   
## 19 Foley   Curveball         78.5    2669. 131.    -13.1           -0.00421
## 20 Foley   Four-Seam         91.7    2659. 188.      4.16          16.1    
## 21 Foley   Slider            78.4    2813. 139.    -17.9            3.71   
## 22 Foley   Changeup          82.7    2098.  22.5     9.36          10.6
Foley_NShore <- x %>%
  filter(BatterTeam == "NSH_N") %>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak) 
Foley_NShore
## # A tibble: 23 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Cutter            90.7    2530.  18.8    4.60              6.75 
##  2 Foley   Slider            90.8    2607.  18.8    3.30              5.87 
##  3 Foley   Cutter            92.3    2683. 188.     2.18             10.1  
##  4 Foley   Four-Seam         92.8    2643. 188.     3.10             14.0  
##  5 Foley   Four-Seam         91.5    2612. 191.     5.12             13.5  
##  6 Foley   Sinker            89.9    2628.  30     11.0               6.88 
##  7 Foley   Cutter            89.9    2697. 184.     2.37             13.0  
##  8 Foley   Slider            79.7    2702. 131.   -10.1               0.217
##  9 Foley   Four-Seam         92.5    2675. 184.     0.923            12.9  
## 10 Foley   Cutter            91.0    2241. 180     -0.595            11.0  
## 11 Foley   Four-Seam         91.7    2528.  15      7.74             14.5  
## 12 Foley   Cutter            90.5    2435. 180     -0.123            10.8  
## 13 Foley   Slider            78.5    2694. 135    -19.2               0.570
## 14 Foley   Cutter            90.6    2576. 184.     1.77             10.3  
## 15 Foley   Slider            81.3    2719. 135    -18.3               1.74 
## 16 Foley   Four-Seam         91.3    2419. 184.     1.27             17.7  
## 17 Foley   Slider            79.2    2697. 139.   -20.1               4.59 
## 18 Foley   Four-Seam         92.4    2424. 184.     0.729            11.8  
## 19 Foley   Cutter            92.0    2591. 180      0.0157            8.85 
## 20 Foley   Slider            81.1    1999.  67.5    1.26              0.180
## 21 Foley   Cutter            90.1    2404. 176.    -0.541             8.85 
## 22 Foley   Cutter            89.5    2645. 176.    -0.794            10.8  
## 23 Foley   Cutter            90.5    2519. 180     -0.243             9.89
Foley_Danbury2 <- x %>%
  filter(BatterTeam == "DAN_WES", Date == "2023-07-05")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Danbury2
## # A tibble: 48 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Slider            91.2    2305.  30       3.79              3.05
##  2 Foley   Four-Seam         92.9    2389.  15       3.90              8.02
##  3 Foley   Slider            91.5    2310. 191.      1.49              5.07
##  4 Foley   Slider            80.2    2630. 139.    -17.3               4.76
##  5 Foley   Cutter            90.7    2506. 188.      1.73              8.76
##  6 Foley   Four-Seam         93.1    2453. 188.      2.51             12.2 
##  7 Foley   Four-Seam         93.7    2344. 184.      0.908             6.40
##  8 Foley   Slider            80.8    2784. 135     -11.1               1.93
##  9 Foley   Four-Seam         92.1    2583.  18.8     5.34              8.26
## 10 Foley   Cutter            89.8    2449. 184.      1.86             11.5 
## 11 Foley   Slider            90.7    2336. 191.      2.72              8.48
## 12 Foley   Four-Seam         90.3    2335. 180      -0.314            11.2 
## 13 Foley   Sinker            91.5    2350.  26.2     7.20              7.09
## 14 Foley   Four-Seam         92.7    2401.  15       3.59              7.72
## 15 Foley   Four-Seam         92.8    2241.  15       4.55              8.95
## 16 Foley   Four-Seam         92.5    2491. 191.      4.11             12.4 
## 17 Foley   Four-Seam         91.6    2579.  22.5     4.82              5.94
## 18 Foley   Four-Seam         90.0    2310.  18.8     5.06              7.64
## 19 Foley   Sinker            92.7    2395.  30       9.10              6.54
## 20 Foley   Sinker            91.3    2535.  26.2     7.64              7.19
## 21 Foley   Four-Seam         91.1    2621. 191.      4.42             10.7 
## 22 Foley   Slider            80.0    2751. 135     -11.0               1.04
## 23 Foley   Slider            81.0    2776. 128.    -15.6              -2.96
## 24 Foley   Cutter            90.8    2638. 176.     -1.62              9.80
## 25 Foley   Cutter            89.5    2541. 176.     -1.70             11.1 
## 26 Foley   Slider            81.7    2841. 131.    -19.7              -1.34
## 27 Foley   Four-Seam         92.2    2580. 191.      3.45              9.60
## 28 Foley   Four-Seam         89.4    2559.  18.8     7.23             11.3 
## 29 Foley   Four-Seam         91.7    2459. 191.      4.25             12.9 
## 30 Foley   Four-Seam         91.7    2520.  26.2     5.01              5.24
## 31 Foley   Four-Seam         91.7    2576. 184.      1.30             10.5 
## 32 Foley   Four-Seam         90.3    2547. 191.      5.42             13.5 
## 33 Foley   Four-Seam         92.9    2352. 184.      1.40             11.7 
## 34 Foley   Four-Seam         92.8    2318. 188.      1.95              7.34
## 35 Foley   Cutter            92.7    2296. 169.     -0.998             3.23
## 36 Foley   Slider            80.0    2757. 139.    -15.2               3.67
## 37 Foley   Slider            79.5    2796. 135     -19.8               1.33
## 38 Foley   Cutter            92.4    2624. 180      -0.443             9.22
## 39 Foley   Changeup          81.9    2231. 146.    -22.7              11.6 
## 40 Foley   Changeup          79.4    2278. 154.    -12.0               9.93
## 41 Foley   Changeup          82.0    2253. 150     -19.5              14.1 
## 42 Foley   Curveball         80.6    2252.  82.5     4.75            -15.9 
## 43 Foley   Changeup          76.0    1570. 146.    -34.1              17.1 
## 44 Foley   Changeup          74.5    1645. 146.    -18.9              10.9 
## 45 Foley   Changeup          83.8    2319. 150     -20.1              13.6 
## 46 Foley   Changeup          74.0    1696. 135     -18.3               2.44
## 47 Foley   Changeup          83.5    2269. 146.    -20.2              11.4 
## 48 Foley   Changeup          82.3    2237. 142.    -19.9               8.16
Foley_NAdams <- x %>%
  filter(BatterTeam == "NOR_ADA", Date == "2023-07-08") %>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak) 
Foley_NAdams
## # A tibble: 46 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         90.9    2212.  18.8    4.29              7.36 
##  2 Foley   Curveball         80.1    2876. 124.   -10.1              -2.61 
##  3 Foley   Four-Seam         91.5    2476. 184.     0.84             11.0  
##  4 Foley   Slider            79.7    2705. 131.   -21.0              -0.256
##  5 Foley   Cutter            93.4    2495. 184.     0.872            10.1  
##  6 Foley   Four-Seam         92.3    2507. 184.     1.43              9.18 
##  7 Foley   Four-Seam         91.3    2516. 188.     2.74             10.6  
##  8 Foley   Four-Seam         90.3    2557. 184.     1.23             13.3  
##  9 Foley   Four-Seam         91.1    2557. 188.     3.52             11.9  
## 10 Foley   Four-Seam         90.8    2260.  18.8    5.07              7.95 
## 11 Foley   Cutter            90.5    2475. 188.     2.33             11.2  
## 12 Foley   Cutter            90.5    2563. 180     -0.0745           10.2  
## 13 Foley   Four-Seam         92.3    2569. 184.     1.91             13.0  
## 14 Foley   Slider            81.1    2838. 135    -16.5               1.04 
## 15 Foley   Slider            79.8    2863. 131.   -17.1              -0.553
## 16 Foley   Cutter            91.8    2653. 180     -0.705            13.0  
## 17 Foley   Four-Seam         90.9    2399. 191.     7.52             16.7  
## 18 Foley   Four-Seam         90.8    2399.  15      7.43             13.5  
## 19 Foley   Cutter            90.1    2468. 188.     2.38             11.5  
## 20 Foley   Four-Seam         92.5    2317. 188.     2.92             11.0  
## 21 Foley   Slider            82.2    2826. 139.    -9.80              2.59 
## 22 Foley   Four-Seam         90.2    2398. 191.     3.79              9.56 
## 23 Foley   Cutter            90.2    2304. 180     -0.640            11.1  
## 24 Foley   Four-Seam         90.5    2394. 188.     2.74              9.35 
## 25 Foley   Four-Seam         91.2    2547. 188.     2.96             13.3  
## 26 Foley   Slider            79.3    2878. 131.   -16.6              -1.21 
## 27 Foley   Four-Seam         90.9    2598. 188.     3.01             12.2  
## 28 Foley   Slider            80.6    2824. 142.   -13.5               4.95 
## 29 Foley   Four-Seam         90.1    2561. 188.     2.91             13.3  
## 30 Foley   Four-Seam         89.8    2375.  15      6.92             14.6  
## 31 Foley   Slider            80.1    2719. 154.    -8.94              8.55 
## 32 Foley   Four-Seam         89.7    2383. 184.     1.53             13.4  
## 33 Foley   Cutter            88.5    2508. 184.     0.598             8.71 
## 34 Foley   Cutter            88.2    2365. 184.     1.99             12.5  
## 35 Foley   Cutter            88.5    2578.  15      5.08             10.2  
## 36 Foley   Four-Seam         89.5    2521. 191.     4.75             14.0  
## 37 Foley   Four-Seam         89.5    2501. 191.     5.90             15.3  
## 38 Foley   Four-Seam         89.3    2593. 191.     5.97             13.7  
## 39 Foley   Four-Seam         89.6    2441.  15      5.63             10.4  
## 40 Foley   Four-Seam         90.5    2531.  15      6.70             12.1  
## 41 Foley   Four-Seam         89.5    2506. 188.     3.46             13.3  
## 42 Foley   Cutter            89.4    2579. 188.     2.44             12.7  
## 43 Foley   Cutter            88.6    2478. 184.     1.61             12.8  
## 44 Foley   Cutter            90.0    2441. 184.     0.708             9.86 
## 45 Foley   Slider            78.5    2709. 142.   -18.0               5.83 
## 46 Foley   Cutter            92.1    2726. 188.     2.73              9.75
Foley_UPP_VAL <- x %>%
   filter(BatterTeam == "UPP_VAL") %>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_UPP_VAL
## # A tibble: 56 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         93.1    2412.  18.8   10.6               13.6 
##  2 Foley   Slider            80.0    2869. 161.    -7.37              12.1 
##  3 Foley   Four-Seam         93.1    2718.  18.8   10.1               15.8 
##  4 Foley   Four-Seam         90.9    2656.  18.8   11.8               16.7 
##  5 Foley   Changeup          83.9    1994.  26.2   12.3               11.2 
##  6 Foley   Changeup          84.9    2100.  22.5   15.4               15.4 
##  7 Foley   Four-Seam         93.4    2746. 191.     8.62              22.0 
##  8 Foley   Four-Seam         92.3    2622. 191.     8.12              21.2 
##  9 Foley   Slider            83.6    2865. 165     -6.75              12.4 
## 10 Foley   Four-Seam         92.8    2630. 180     -0.538             14.4 
## 11 Foley   Four-Seam         92.7    2658. 180      0.0585            16.0 
## 12 Foley   Four-Seam         92.2    2564. 184.     2.57              16.9 
## 13 Foley   Four-Seam         91.7    2613. 184.     2.23              13.5 
## 14 Foley   Four-Seam         89.3    2438. 188.     3.72              18.5 
## 15 Foley   Four-Seam         89.4    2339. 191.     5.67              17.6 
## 16 Foley   Four-Seam         89.2    2385. 191.     7.13              19.0 
## 17 Foley   Four-Seam         89.7    2435. 188.     3.17              16.1 
## 18 Foley   Four-Seam         90.0    2429. 188.     4.18              18.5 
## 19 Foley   Four-Seam         89.1    2530. 180      0.561             17.0 
## 20 Foley   Four-Seam         90.2    2489. 184.     3.19              19.7 
## 21 Foley   Four-Seam         90.5    2555.  15      9.46              19.0 
## 22 Foley   Four-Seam         90.8    2462.  15      8.36              16.6 
## 23 Foley   Four-Seam         91.2    2516. 191.     7.26              19.6 
## 24 Foley   Four-Seam         90.0    2595. 184.     1.07              15.7 
## 25 Foley   Four-Seam         90.5    2238. 184.     1.13              12.8 
## 26 Foley   Four-Seam         90.5    2324. 184.     1.45              12.8 
## 27 Foley   Slider            79.0    2640. 158.    -5.78               8.06
## 28 Foley   Four-Seam         90.6    2461. 191.     5.31              16.2 
## 29 Foley   Four-Seam         88.7    2483. 188.     3.04              15.6 
## 30 Foley   Four-Seam         90.7    2574.  15      6.53              12.2 
## 31 Foley   Slider            77.8    2509. 158.    -6.78               7.79
## 32 Foley   Four-Seam         89.6    2622.  15      7.34              14.7 
## 33 Foley   Four-Seam         90.0    2609. 191.     5.57              15.0 
## 34 Foley   Four-Seam         88.7    2474.  18.8   10.9               14.7 
## 35 Foley   Four-Seam         91.5    2336. 191.     4.78              14.8 
## 36 Foley   Four-Seam         89.7    2493. 191.     5.65              17.4 
## 37 Foley   Changeup          82.3    1988.  26.2   11.0                9.58
## 38 Foley   Four-Seam         89.4    2328. 184.     2.13              15.0 
## 39 Foley   Curveball         75.4    2483. 154.   -12.2               11.7 
## 40 Foley   Four-Seam         81.1    1974.  33.8    9.90               5.89
## 41 Foley   Slider            81.6    2579. 142.   -11.7                4.60
## 42 Foley   Four-Seam         90.9    2555.  18.8    7.65              12.0 
## 43 Foley   Four-Seam         93.8    2507.  15      6.81              13.3 
## 44 Foley   Slider            83.0    2816. 142.   -14.3                4.39
## 45 Foley   Slider            82.7    2589. 161.    -6.18               9.70
## 46 Foley   Changeup          83.9    2065.  30     14.5                9.69
## 47 Foley   Four-Seam         92.6    2523. 188.     3.14              14.1 
## 48 Foley   Four-Seam         92.7    2642. 191.     7.18              20.9 
## 49 Foley   Changeup          81.1    2069.  26.2   12.5                9.81
## 50 Foley   Four-Seam         92.6    2610.  15      7.55              15.8 
## 51 Foley   Four-Seam         89.1    2513. 191.     5.34              15.3 
## 52 Foley   Four-Seam         91.8    2525. 184.     2.76              18.1 
## 53 Foley   Slider            81.5    2723. 154.   -10.9               10.6 
## 54 Foley   Four-Seam         92.3    2639. 188.     4.34              19.0 
## 55 Foley   Four-Seam         91.0    2616. 191.     5.63              14.4 
## 56 Foley   Four-Seam         91.2    2597. 188.     5.38              18.0
Foley_NAdams2 <- x %>%
  filter(BatterTeam == "NOR_ADA", Date == "2023-07-19") %>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak) 
Foley_NAdams2
## # A tibble: 34 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         90.6    2338.  15        4.17            9.01 
##  2 Foley   Four-Seam         92.4    2545.  15        6.44           12.7  
##  3 Foley   Cutter            91.1    2499. 191.       3.28            9.26 
##  4 Foley   Four-Seam         91.7    2346.  15        7.42           15.2  
##  5 Foley   Four-Seam         91.8    2394. 191.       4.46           13.9  
##  6 Foley   Four-Seam         90.7    2287.  15        7.36           14.5  
##  7 Foley   Four-Seam         90.1    2471. 188.       3.28           12.3  
##  8 Foley   Slider            89.3    2306. 191.       3.01            8.00 
##  9 Foley   Slider            89.7    2373.  22.5      3.35            4.92 
## 10 Foley   Four-Seam         91.9    2521. 191.       2.91            9.48 
## 11 Foley   Four-Seam         91.7    2458. 191.       6.69           14.7  
## 12 Foley   Slider            89.6    2402. 191.       2.90            7.89 
## 13 Foley   Four-Seam         88.5    2356. 191.       3.93           11.8  
## 14 Foley   Curveball         76.3    2714. 135      -15.1             1.66 
## 15 Foley   Four-Seam         93.0    2377. 188.       3.82           14.3  
## 16 Foley   Four-Seam         91.9    2455.  15        4.34            9.56 
## 17 Foley   Four-Seam         92.6    2429.  15        7.07           12.8  
## 18 Foley   Slider            79.9    2844. 128.      -9.09           -0.484
## 19 Foley   Four-Seam         92.1    2625.  22.5      9.66           11.5  
## 20 Foley   Sinker            91.4    2595.  26.2     13.7            12.0  
## 21 Foley   Four-Seam         88.4    2631.  18.8      8.93           14.4  
## 22 Foley   Four-Seam         87.7    2467.  22.5     11.2            12.4  
## 23 Foley   Curveball         78.3    2728. 135      -14.2             1.27 
## 24 Foley   Sinker            92.6    2736.  22.5      9.22            9.90 
## 25 Foley   Four-Seam         90.6    2800.  15        7.22           13.3  
## 26 Foley   Four-Seam         90.8    2472.  22.5      8.30            9.98 
## 27 Foley   Four-Seam         87.9    2602.  22.5     10.6            12.4  
## 28 Foley   Slider            82.1    2084.  33.8      6.15            4.01 
## 29 Foley   Changeup          82.4    2198.  45       10.5             1.52 
## 30 Foley   Four-Seam         94.0    2626. 188.       3.31           13.6  
## 31 Foley   Four-Seam         93.8    2692. 184.       1.44           15.0  
## 32 Foley   Slider            81.4    2785. 142.     -11.4             5.07 
## 33 Foley   Four-Seam         92.8    2649. 188.       2.48           11.4  
## 34 Foley   Changeup          84.1    2079.  37.5      9.32            3.84
Foley_Keene2 <- x %>%
  filter(BatterTeam == "KEE_SWA", Date=="2023-07-25")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Keene2
## # A tibble: 36 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Sinker            91.0    2252.  26.2     4.98            4.82  
##  2 Foley   Four-Seam         92.2    2524. 184.      1.87           17.1   
##  3 Foley   Four-Seam         92.1    2539. 191.      5.92           13.6   
##  4 Foley   Slider            80.8    2782. 131.    -18.6             0.0435
##  5 Foley   Slider            80.6    2821. 131.    -10.4             0.586 
##  6 Foley   Four-Seam         91.8    2626. 191.      4.53           11.3   
##  7 Foley   Four-Seam         89.3    2462.  18.8     7.86           11.0   
##  8 Foley   Sinker            88.9    2283.  30      13.6             9.65  
##  9 Foley   Slider            81.3    2731. 128.    -15.4            -3.19  
## 10 Foley   Four-Seam         90.6    2582. 188.      2.73           12.1   
## 11 Foley   Sinker            92.4    2424.  26.2    13.0            11.2   
## 12 Foley   Changeup          83.0    2056.  30       7.21            4.94  
## 13 Foley   Sinker            89.9    2286.  33.8    14.9             7.59  
## 14 Foley   Four-Seam         89.2    2411.  22.5     9.36           11.2   
## 15 Foley   Four-Seam         90.0    2358. 191.      4.01           12.4   
## 16 Foley   Four-Seam         91.2    2586. 188.      2.21            8.70  
## 17 Foley   Four-Seam         90.0    2514. 191.      5.22           14.6   
## 18 Foley   Slider            88.5    2291. 180       0.305           9.81  
## 19 Foley   Sinker            89.2    2181.  37.5    14.9             5.54  
## 20 Foley   Sinker            90.7    2272.  33.8    17.0             8.27  
## 21 Foley   Cutter            90.7    2483. 176.     -1.03           12.8   
## 22 Foley   Four-Seam         90.4    2446.  26.2    12.6            10.3   
## 23 Foley   Slider            79.7    2783. 135     -18.4             0.604 
## 24 Foley   Sinker            90.3    2477.  30      14.7            10.7   
## 25 Foley   Slider            89.2    2570.  18.8     5.64            7.60  
## 26 Foley   Sinker            89.8    2356.  30      12.3             8.96  
## 27 Foley   Slider            88.6    2481.  18.8     4.88            8.36  
## 28 Foley   Four-Seam         89.4    2528. 184.      1.94           13.5   
## 29 Foley   Sinker            89.8    2383.  30      13.3             9.74  
## 30 Foley   Four-Seam         88.6    2324.  22.5    10.7            13.1   
## 31 Foley   Slider            80.1    2459. 146.    -12.9             7.05  
## 32 Foley   Four-Seam         87.7    2374.  26.2    12.1            10.9   
## 33 Foley   Cutter            90.3    2392. 176.     -1.68           10.0   
## 34 Foley   Four-Seam         90.6    2601. 188.      2.82           10.4   
## 35 Foley   Slider            88.8    2324.  15       3.33            7.18  
## 36 Foley   Sinker            89.6    2295.  33.8    15.1             8.00
Foley_Danbury3 <- x %>%
  filter(BatterTeam == "DAN_WES", Date == "2023-08-01")%>%
  select(Pitcher, AutoPitchType, RelSpeed, SpinRate, Tilt, HorzBreak, InducedVertBreak)
Foley_Danbury3
## # A tibble: 52 × 7
##    Pitcher AutoPitchType RelSpeed SpinRate  Tilt HorzBreak InducedVertBreak
##    <chr>   <chr>            <dbl>    <dbl> <dbl>     <dbl>            <dbl>
##  1 Foley   Four-Seam         91.6    2359.  18.8    11.3              16.2 
##  2 Foley   Four-Seam         91.6    2558. 188.      4.47             15.8 
##  3 Foley   Sinker            90.9    2437.  26.2    14.7              11.1 
##  4 Foley   Four-Seam         89.5    2573. 184.      1.78             18.2 
##  5 Foley   Four-Seam         92.1    2550. 188.      4.88             16.5 
##  6 Foley   Cutter            89.6    2617. 184.      1.45             13.1 
##  7 Foley   Sinker            91.7    2433.  30      14.9               8.78
##  8 Foley   Slider            83.0    2903. 135     -17.7               2.09
##  9 Foley   Four-Seam         92.8    2801. 191.      5.16             15.0 
## 10 Foley   Sinker            92.3    2513.  26.2    13.1              10.3 
## 11 Foley   Sinker            91.8    2554.  26.2    14.7              11.5 
## 12 Foley   Four-Seam         92.3    2703. 188.      4.49             18.4 
## 13 Foley   Sinker            89.9    2178.  26.2    11.7              10.5 
## 14 Foley   Slider            80.7    2862. 146.    -12.8               6.63
## 15 Foley   Sinker            92.6    2339.  26.2    10.3               9.42
## 16 Foley   Slider            79.5    2659. 135     -11.5               1.34
## 17 Foley   Four-Seam         91.5    2521. 184.      1.40             16.4 
## 18 Foley   Four-Seam         90.1    2485. 184.      2.69             16.1 
## 19 Foley   Sinker            91.4    2407.  30      14.6              10.8 
## 20 Foley   Four-Seam         92.1    2576. 188.      3.76             16.7 
## 21 Foley   Four-Seam         92.0    2656. 184.      3.13             18.5 
## 22 Foley   Cutter            91.2    2550. 176.     -1.14             15.7 
## 23 Foley   Four-Seam         90.4    2400. 184.      0.999            12.6 
## 24 Foley   Cutter            90.5    2559. 180      -0.648            15.8 
## 25 Foley   Four-Seam         90.7    2422. 191.      4.85             13.4 
## 26 Foley   Slider            81.3    2736. 142.    -13.1               4.19
## 27 Foley   Four-Seam         91.9    2756. 180      -0.503            15.1 
## 28 Foley   Cutter            90.3    2648. 176.     -1.69             15.5 
## 29 Foley   Cutter            90.1    2700. 176.     -1.80             14.9 
## 30 Foley   Slider            78.4    2728. 139.    -16.2               3.96
## 31 Foley   Sinker            90.6    2506.  26.2    12.9               9.80
## 32 Foley   Four-Seam         91.6    2724. 176.     -1.16             16.6 
## 33 Foley   Slider            81.6    2751. 139.     -7.90              2.80
## 34 Foley   Four-Seam         91.2    2640. 188.      3.35             16.4 
## 35 Foley   Sinker            90.0    2429.  26.2    14.3              12.6 
## 36 Foley   Four-Seam         92.2    2781. 184.      2.01             13.4 
## 37 Foley   Four-Seam         90.4    2473.  22.5    10.9              13.3 
## 38 Foley   Four-Seam         88.7    2432. 188.      3.90             20.7 
## 39 Foley   Cutter            87.2    2510. 180       0.826            16.1 
## 40 Foley   Sinker            88.7    2406.  22.5    13.6              15.9 
## 41 Foley   Four-Seam         88.5    2624. 188.      6.61             20.7 
## 42 Foley   Four-Seam         88.4    2585. 188.      5.67             22.9 
## 43 Foley   Four-Seam         90.6    2615. 184.      3.29             22.0 
## 44 Foley   Four-Seam         92.0    2681. 188.      4.02             19.5 
## 45 Foley   Slider            79.7    2688. 142.    -14.2               4.89
## 46 Foley   Cutter            89.8    2513. 176.     -1.33             12.7 
## 47 Foley   Cutter            90.8    2638. 176.     -1.48             15.7 
## 48 Foley   Four-Seam         91.2    2497. 180       0.282            13.8 
## 49 Foley   Four-Seam         91.0    2498. 188.      2.48             11.8 
## 50 Foley   Four-Seam         90.1    2449.  18.8     9.89             15.1 
## 51 Foley   Cutter            89.2    2555. 180       0.462            16.6 
## 52 Foley   Four-Seam         88.3    2496. 184.      2.74             16.2
## Warning: Removed 25 rows containing missing values (`geom_point()`).

x %>%
  ggplot() +
  geom_point(aes(x=HorzBreak, y=InducedVertBreak, color = AutoPitchType, size = .5))+
  xlim(-25, 25) +
  ylim(-25, 25) +
  labs(title = paste('HBreak vs IndVBreak'), caption = "Negative PlateLocSide is Outside to a LHH")
## Warning: Removed 1 rows containing missing values (`geom_point()`).