#setup

library(datasetsICR)

mydata<-data("FIFA")


head(FIFA, 10)
##                 Name Age Nationality Overall Potential                Club
## 1           L. Messi  31   Argentina      94        94        FC Barcelona
## 2  Cristiano Ronaldo  33    Portugal      94        94            Juventus
## 3          Neymar Jr  26      Brazil      92        93 Paris Saint-Germain
## 4             De Gea  27       Spain      91        93   Manchester United
## 5       K. De Bruyne  27     Belgium      91        92     Manchester City
## 6          E. Hazard  27     Belgium      91        91             Chelsea
## 7           L. Modri  32     Croatia      91        91         Real Madrid
## 8           L. Surez  31     Uruguay      91        91        FC Barcelona
## 9       Sergio Ramos  32       Spain      91        91         Real Madrid
## 10          J. Oblak  25    Slovenia      90        93     Atletico Madrid
##    Value Wage Special Preferred.Foot International.Reputation Weak.Foot
## 1  110.5  565    2202           Left                        5         4
## 2     77  405    2228          Right                        5         4
## 3  118.5  290    2143          Right                        5         5
## 4     72  260    1471          Right                        4         3
## 5    102  355    2281          Right                        4         5
## 6     93  340    2142          Right                        4         4
## 7     67  420    2280          Right                        4         4
## 8     80  455    2346          Right                        5         4
## 9     51  380    2201          Right                        4         3
## 10    68   94    1331          Right                        3         3
##    Skill.Moves      Work.Rate Position Jersey.Number Contract.Valid.Until
## 1            4 Medium/ Medium       RF            10                 2021
## 2            5      High/ Low       ST             7                 2022
## 3            5   High/ Medium       LW            10                 2022
## 4            1 Medium/ Medium       GK             1                 2020
## 5            4     High/ High      RCM             7                 2023
## 6            4   High/ Medium       LF            10                 2020
## 7            4     High/ High      RCM            10                 2020
## 8            3   High/ Medium       RS             9                 2021
## 9            3   High/ Medium      RCB            15                 2020
## 10           1 Medium/ Medium       GK             1                 2021
##    Height   Weight   LS   ST   RS   LW   LF   CF   RF   RW  LAM  CAM  RAM   LM
## 1  170.18 72.12119 88+2 88+2 88+2 92+2 93+2 93+2 93+2 92+2 93+2 93+2 93+2 91+2
## 2  187.96 83.00740 91+3 91+3 91+3 89+3 90+3 90+3 90+3 89+3 88+3 88+3 88+3 88+3
## 3  175.26 68.03886 84+3 84+3 84+3 89+3 89+3 89+3 89+3 89+3 89+3 89+3 89+3 88+3
## 4  193.04 76.20352                                                            
## 5  180.34 69.85322 82+3 82+3 82+3 87+3 87+3 87+3 87+3 87+3 88+3 88+3 88+3 88+3
## 6  172.72 73.93556 83+3 83+3 83+3 89+3 88+3 88+3 88+3 89+3 89+3 89+3 89+3 89+3
## 7  172.72 66.22449 77+3 77+3 77+3 85+3 84+3 84+3 84+3 85+3 87+3 87+3 87+3 86+3
## 8  182.88 86.18255 87+5 87+5 87+5 86+5 87+5 87+5 87+5 86+5 85+5 85+5 85+5 84+5
## 9  182.88 82.10022 73+3 73+3 73+3 70+3 71+3 71+3 71+3 70+3 71+3 71+3 71+3 72+3
## 10 187.96 87.08974                                                            
##     LCM   CM  RCM   RM  LWB  LDM  CDM  RDM  RWB   LB  LCB   CB  RCB   RB
## 1  84+2 84+2 84+2 91+2 64+2 61+2 61+2 61+2 64+2 59+2 47+2 47+2 47+2 59+2
## 2  81+3 81+3 81+3 88+3 65+3 61+3 61+3 61+3 65+3 61+3 53+3 53+3 53+3 61+3
## 3  81+3 81+3 81+3 88+3 65+3 60+3 60+3 60+3 65+3 60+3 47+3 47+3 47+3 60+3
## 4                                                                       
## 5  87+3 87+3 87+3 88+3 77+3 77+3 77+3 77+3 77+3 73+3 66+3 66+3 66+3 73+3
## 6  82+3 82+3 82+3 89+3 66+3 63+3 63+3 63+3 66+3 60+3 49+3 49+3 49+3 60+3
## 7  88+3 88+3 88+3 86+3 82+3 81+3 81+3 81+3 82+3 79+3 71+3 71+3 71+3 79+3
## 8  79+5 79+5 79+5 84+5 69+5 68+5 68+5 68+5 69+5 66+5 63+5 63+5 63+5 66+5
## 9  75+3 75+3 75+3 72+3 81+3 84+3 84+3 84+3 81+3 84+3 87+3 87+3 87+3 84+3
## 10                                                                      
##    Crossing Finishing HeadingAccuracy ShortPassing Volleys Dribbling Curve
## 1        84        95              70           90      86        97    93
## 2        84        94              89           81      87        88    81
## 3        79        87              62           84      84        96    88
## 4        17        13              21           50      13        18    21
## 5        93        82              55           92      82        86    85
## 6        81        84              61           89      80        95    83
## 7        86        72              55           93      76        90    85
## 8        77        93              77           82      88        87    86
## 9        66        60              91           78      66        63    74
## 10       13        11              15           29      13        12    13
##    FKAccuracy LongPassing BallControl Acceleration SprintSpeed Agility
## 1          94          87          96           91          86      91
## 2          76          77          94           89          91      87
## 3          87          78          95           94          90      96
## 4          19          51          42           57          58      60
## 5          83          91          91           78          76      79
## 6          79          83          94           94          88      95
## 7          78          88          93           80          72      93
## 8          84          64          90           86          75      82
## 9          72          77          84           76          75      78
## 10         14          26          16           43          60      67
##    Reactions Balance ShotPower Jumping Stamina Strength LongShots Aggression
## 1         95      95        85      68      72       59        94         48
## 2         96      70        95      95      88       79        93         63
## 3         94      84        80      61      81       49        82         56
## 4         90      43        31      67      43       64        12         38
## 5         91      77        91      63      90       75        91         76
## 6         90      94        82      56      83       66        80         54
## 7         90      94        79      68      89       58        82         62
## 8         92      83        86      69      90       83        85         87
## 9         85      66        79      93      84       83        59         88
## 10        86      49        22      76      41       78        12         34
##    Interceptions Positioning Vision Penalties Composure Marking StandingTackle
## 1             22          94     94        75        96      33             28
## 2             29          95     82        85        95      28             31
## 3             36          89     87        81        94      27             24
## 4             30          12     68        40        68      15             21
## 5             61          87     94        79        88      68             58
## 6             41          87     89        86        91      34             27
## 7             83          79     92        82        84      60             76
## 8             41          92     84        85        85      62             45
## 9             90          60     63        75        82      87             92
## 10            19          11     70        11        70      27             12
##    SlidingTackle GKDiving GKHandling GKKicking GKPositioning GKReflexes
## 1             26        6         11        15            14          8
## 2             23        7         11        15            14         11
## 3             33        9          9        15            15         11
## 4             13       90         85        87            88         94
## 5             51       15         13         5            10         13
## 6             22       11         12         6             8          8
## 7             73       13          9         7            14          9
## 8             38       27         25        31            33         37
## 9             91       11          8         9             7         11
## 10            18       86         92        78            88         89
##    Release.Clause
## 1           226.5
## 2           127.1
## 3           228.1
## 4           138.6
## 5           196.4
## 6           172.1
## 7           137.4
## 8             164
## 9           104.6
## 10          144.5
tail(FIFA, 10)
##                     Name Age         Nationality Overall Potential
## 18198         D. Holland  18 Republic of Ireland      47        61
## 18199         J. Livesey  18             England      47        70
## 18200       M. Baldisimo  18              Canada      47        69
## 18201           J. Young  18            Scotland      47        62
## 18202           D. Walsh  18 Republic of Ireland      47        68
## 18203       J. Lundstram  19             England      47        65
## 18204 N. Christoffersson  19              Sweden      47        63
## 18205          B. Worman  16             England      47        67
## 18206     D. Walker-Rice  17             England      47        66
## 18207          G. Nugent  16             England      46        66
##                         Club Value Wage Special Preferred.Foot
## 18198              Cork City    60    1    1362          Right
## 18199          Burton Albion    60    1     792          Right
## 18200 Vancouver Whitecaps FC    70    1    1303          Right
## 18201           Swindon Town    60    1    1203           Left
## 18202           Waterford FC    60    1    1098           Left
## 18203        Crewe Alexandra    60    1    1307          Right
## 18204         Trelleborgs FF    60    1    1098          Right
## 18205       Cambridge United    60    1    1189          Right
## 18206        Tranmere Rovers    60    1    1228          Right
## 18207        Tranmere Rovers    60    1    1321          Right
##       International.Reputation Weak.Foot Skill.Moves      Work.Rate Position
## 18198                        1         3           2 Medium/ Medium       CM
## 18199                        1         2           1 Medium/ Medium       GK
## 18200                        1         3           2   Medium/ High       CM
## 18201                        1         2           2 Medium/ Medium       ST
## 18202                        1         3           2 Medium/ Medium       RB
## 18203                        1         2           2 Medium/ Medium       CM
## 18204                        1         2           2 Medium/ Medium       ST
## 18205                        1         3           2 Medium/ Medium       ST
## 18206                        1         3           2 Medium/ Medium       RW
## 18207                        1         3           2 Medium/ Medium       CM
##       Jersey.Number Contract.Valid.Until Height   Weight   LS   ST   RS   LW
## 18198            14                 2018 177.80 63.95652 45+2 45+2 45+2 49+2
## 18199            22                 2021 180.34 69.85322                    
## 18200            65                 2021 167.64 68.03886 42+2 42+2 42+2 43+2
## 18201            21                 2019 175.26 71.21400 45+2 45+2 45+2 44+2
## 18202            29                 2018 185.42 76.20352 32+2 32+2 32+2 29+2
## 18203            22                 2019 175.26 60.78138 42+2 42+2 42+2 44+2
## 18204            21                 2020 190.50 77.11070 45+2 45+2 45+2 39+2
## 18205            33                 2021 172.72 67.13167 45+2 45+2 45+2 45+2
## 18206            34                 2019 177.80 69.85322 47+2 47+2 47+2 47+2
## 18207            33                 2019 177.80 79.83226 43+2 43+2 43+2 45+2
##         LF   CF   RF   RW  LAM  CAM  RAM   LM  LCM   CM  RCM   RM  LWB  LDM
## 18198 48+2 48+2 48+2 49+2 49+2 49+2 49+2 49+2 47+2 47+2 47+2 49+2 45+2 44+2
## 18199                                                                      
## 18200 44+2 44+2 44+2 43+2 44+2 44+2 44+2 45+2 45+2 45+2 45+2 45+2 47+2 48+2
## 18201 45+2 45+2 45+2 44+2 44+2 44+2 44+2 41+2 37+2 37+2 37+2 41+2 31+2 28+2
## 18202 30+2 30+2 30+2 29+2 28+2 28+2 28+2 30+2 30+2 30+2 30+2 30+2 39+2 38+2
## 18203 44+2 44+2 44+2 44+2 45+2 45+2 45+2 44+2 45+2 45+2 45+2 44+2 44+2 45+2
## 18204 42+2 42+2 42+2 39+2 40+2 40+2 40+2 38+2 35+2 35+2 35+2 38+2 30+2 31+2
## 18205 46+2 46+2 46+2 45+2 44+2 44+2 44+2 44+2 38+2 38+2 38+2 44+2 34+2 30+2
## 18206 46+2 46+2 46+2 47+2 45+2 45+2 45+2 46+2 39+2 39+2 39+2 46+2 36+2 32+2
## 18207 44+2 44+2 44+2 45+2 45+2 45+2 45+2 46+2 45+2 45+2 45+2 46+2 46+2 46+2
##        CDM  RDM  RWB   LB  LCB   CB  RCB   RB Crossing Finishing
## 18198 44+2 44+2 45+2 44+2 40+2 40+2 40+2 44+2       44        44
## 18199                                               14         8
## 18200 48+2 48+2 47+2 47+2 48+2 48+2 48+2 47+2       31        31
## 18201 28+2 28+2 31+2 30+2 27+2 27+2 27+2 30+2       28        47
## 18202 38+2 38+2 39+2 42+2 46+2 46+2 46+2 42+2       22        23
## 18203 45+2 45+2 44+2 45+2 45+2 45+2 45+2 45+2       34        38
## 18204 31+2 31+2 30+2 29+2 32+2 32+2 32+2 29+2       23        52
## 18205 30+2 30+2 34+2 33+2 28+2 28+2 28+2 33+2       25        40
## 18206 32+2 32+2 36+2 35+2 31+2 31+2 31+2 35+2       44        50
## 18207 46+2 46+2 46+2 46+2 47+2 47+2 47+2 46+2       41        34
##       HeadingAccuracy ShortPassing Volleys Dribbling Curve FKAccuracy
## 18198              36           53      43        50    48         46
## 18199              14           19       8        10    13         10
## 18200              41           51      26        46    35         31
## 18201              47           42      37        39    32         25
## 18202              45           25      27        21    21         27
## 18203              40           49      25        42    30         34
## 18204              52           43      36        39    32         20
## 18205              46           38      38        45    38         27
## 18206              39           42      40        51    34         32
## 18207              46           48      30        43    40         34
##       LongPassing BallControl Acceleration SprintSpeed Agility Reactions
## 18198          52          51           68          62      58        41
## 18199          21          11           18          24      22        36
## 18200          55          47           60          63      53        46
## 18201          30          41           65          48      64        54
## 18202          27          32           52          52      39        43
## 18203          45          43           54          57      60        49
## 18204          25          40           41          39      38        40
## 18205          28          44           70          69      50        47
## 18206          32          52           61          60      52        21
## 18207          44          51           57          55      55        51
##       Balance ShotPower Jumping Stamina Strength LongShots Aggression
## 18198      62        50      55      50       38        37         37
## 18199      47        26      56      20       38         5         25
## 18200      55        49      57      42       43        30         53
## 18201      80        44      77      31       31        51         26
## 18202      48        39      74      39       52        16         44
## 18203      76        43      55      40       47        38         46
## 18204      52        41      47      43       67        42         47
## 18205      58        45      60      55       32        45         32
## 18206      71        64      42      40       48        34         33
## 18207      63        43      62      47       60        32         56
##       Interceptions Positioning Vision Penalties Composure Marking
## 18198            28          39     48        49        52      41
## 18199             6           5     37        14        34      15
## 18200            49          35     40        36        40      48
## 18201            16          46     37        58        50      15
## 18202            45          20     31        38        43      44
## 18203            46          39     52        43        45      40
## 18204            16          46     33        43        42      22
## 18205            15          48     43        55        41      32
## 18206            22          44     47        50        46      20
## 18207            42          34     49        33        43      40
##       StandingTackle SlidingTackle GKDiving GKHandling GKKicking GKPositioning
## 18198             47            38       13          6         9            10
## 18199             11            13       46         52        58            42
## 18200             49            49        7          7         9            14
## 18201             17            14       11         15        12            12
## 18202             47            53        9         10         9            11
## 18203             48            47       10         13         7             8
## 18204             15            19       10          9         9             5
## 18205             13            11        6          5        10             6
## 18206             25            27       14          6        14             8
## 18207             43            50       10         15         9            12
##       GKReflexes Release.Clause
## 18198         15             88
## 18199         48            165
## 18200         15            175
## 18201         11            143
## 18202         13            153
## 18203          9            143
## 18204         12            113
## 18205         13            165
## 18206          9            143
## 18207          9            165
str(FIFA)
## 'data.frame':    18207 obs. of  80 variables:
##  $ Name                    : chr  "L. Messi" "Cristiano Ronaldo" "Neymar Jr" "De Gea" ...
##  $ Age                     : int  31 33 26 27 27 27 32 31 32 25 ...
##  $ Nationality             : Factor w/ 164 levels "Afghanistan",..: 7 124 21 141 14 14 36 159 141 138 ...
##  $ Overall                 : int  94 94 92 91 91 91 91 91 91 90 ...
##  $ Potential               : int  94 94 93 93 92 91 91 91 91 93 ...
##  $ Club                    : Factor w/ 652 levels ""," SSV Jahn Regensburg",..: 218 333 438 380 379 142 475 218 475 65 ...
##  $ Value                   : chr  "110.5" "77" "118.5" "72" ...
##  $ Wage                    : chr  "565" "405" "290" "260" ...
##  $ Special                 : int  2202 2228 2143 1471 2281 2142 2280 2346 2201 1331 ...
##  $ Preferred.Foot          : Factor w/ 3 levels "","Left","Right": 2 3 3 3 3 3 3 3 3 3 ...
##  $ International.Reputation: int  5 5 5 4 4 4 4 5 4 3 ...
##  $ Weak.Foot               : int  4 4 5 3 5 4 4 4 3 3 ...
##  $ Skill.Moves             : int  4 5 5 1 4 4 4 3 3 1 ...
##  $ Work.Rate               : Factor w/ 10 levels "","High/ High",..: 10 3 4 10 2 4 2 4 4 10 ...
##  $ Position                : Factor w/ 28 levels "","CAM","CB",..: 23 28 16 7 21 13 21 25 20 7 ...
##  $ Jersey.Number           : int  10 7 10 1 7 10 10 9 15 1 ...
##  $ Contract.Valid.Until    : Factor w/ 37 levels "","2018","2019",..: 5 6 6 4 7 4 4 5 4 5 ...
##  $ Height                  : num  170 188 175 193 180 ...
##  $ Weight                  : num  72.1 83 68 76.2 69.9 ...
##  $ LS                      : Factor w/ 94 levels "","31+2","32+2",..: 93 94 88 1 85 87 75 92 67 1 ...
##  $ ST                      : Factor w/ 94 levels "","31+2","32+2",..: 93 94 88 1 85 87 75 92 67 1 ...
##  $ RS                      : Factor w/ 94 levels "","31+2","32+2",..: 93 94 88 1 85 87 75 92 67 1 ...
##  $ LW                      : Factor w/ 106 levels "","25+2","27+2",..: 106 105 105 1 104 105 101 103 71 1 ...
##  $ LF                      : Factor w/ 103 levels "","27+2","29+2",..: 103 102 101 1 98 100 95 99 68 1 ...
##  $ CF                      : Factor w/ 103 levels "","27+2","29+2",..: 103 102 101 1 98 100 95 99 68 1 ...
##  $ RF                      : Factor w/ 103 levels "","27+2","29+2",..: 103 102 101 1 98 100 95 99 68 1 ...
##  $ RW                      : Factor w/ 106 levels "","25+2","27+2",..: 106 105 105 1 104 105 101 103 71 1 ...
##  $ LAM                     : Factor w/ 102 levels "","27+2","28+2",..: 102 100 101 1 100 101 99 97 69 1 ...
##  $ CAM                     : Factor w/ 102 levels "","27+2","28+2",..: 102 100 101 1 100 101 99 97 69 1 ...
##  $ RAM                     : Factor w/ 102 levels "","27+2","28+2",..: 102 100 101 1 100 101 99 97 69 1 ...
##  $ LM                      : Factor w/ 101 levels "","27+2","28+2",..: 101 99 99 1 99 100 98 96 70 1 ...
##  $ LCM                     : Factor w/ 93 levels "","30+2","31+2",..: 88 83 83 1 92 85 93 79 70 1 ...
##  $ CM                      : Factor w/ 93 levels "","30+2","31+2",..: 88 83 83 1 92 85 93 79 70 1 ...
##  $ RCM                     : Factor w/ 93 levels "","30+2","31+2",..: 88 83 83 1 92 85 93 79 70 1 ...
##  $ RM                      : Factor w/ 101 levels "","27+2","28+2",..: 101 99 99 1 99 100 98 96 70 1 ...
##  $ LWB                     : Factor w/ 96 levels "","30+2","31+2",..: 55 58 58 1 83 60 93 67 91 1 ...
##  $ LDM                     : Factor w/ 100 levels "","28+2","29+2",..: 50 51 49 1 84 55 92 66 97 1 ...
##  $ CDM                     : Factor w/ 100 levels "","28+2","29+2",..: 50 51 49 1 84 55 92 66 97 1 ...
##  $ RDM                     : Factor w/ 100 levels "","28+2","29+2",..: 50 51 49 1 84 55 92 66 97 1 ...
##  $ RWB                     : Factor w/ 96 levels "","30+2","31+2",..: 55 58 58 1 83 60 93 67 91 1 ...
##  $ LB                      : Factor w/ 99 levels "","29+2","30+2",..: 49 54 52 1 79 52 91 65 99 1 ...
##  $ LCB                     : Factor w/ 109 levels "","25+2","27+2",..: 30 44 31 1 71 35 81 65 109 1 ...
##  $ CB                      : Factor w/ 109 levels "","25+2","27+2",..: 30 44 31 1 71 35 81 65 109 1 ...
##  $ RCB                     : Factor w/ 109 levels "","25+2","27+2",..: 30 44 31 1 71 35 81 65 109 1 ...
##  $ RB                      : Factor w/ 99 levels "","29+2","30+2",..: 49 54 52 1 79 52 91 65 99 1 ...
##  $ Crossing                : int  84 84 79 17 93 81 86 77 66 13 ...
##  $ Finishing               : int  95 94 87 13 82 84 72 93 60 11 ...
##  $ HeadingAccuracy         : int  70 89 62 21 55 61 55 77 91 15 ...
##  $ ShortPassing            : int  90 81 84 50 92 89 93 82 78 29 ...
##  $ Volleys                 : int  86 87 84 13 82 80 76 88 66 13 ...
##  $ Dribbling               : int  97 88 96 18 86 95 90 87 63 12 ...
##  $ Curve                   : int  93 81 88 21 85 83 85 86 74 13 ...
##  $ FKAccuracy              : int  94 76 87 19 83 79 78 84 72 14 ...
##  $ LongPassing             : int  87 77 78 51 91 83 88 64 77 26 ...
##  $ BallControl             : int  96 94 95 42 91 94 93 90 84 16 ...
##  $ Acceleration            : int  91 89 94 57 78 94 80 86 76 43 ...
##  $ SprintSpeed             : int  86 91 90 58 76 88 72 75 75 60 ...
##  $ Agility                 : int  91 87 96 60 79 95 93 82 78 67 ...
##  $ Reactions               : int  95 96 94 90 91 90 90 92 85 86 ...
##  $ Balance                 : int  95 70 84 43 77 94 94 83 66 49 ...
##  $ ShotPower               : int  85 95 80 31 91 82 79 86 79 22 ...
##  $ Jumping                 : int  68 95 61 67 63 56 68 69 93 76 ...
##  $ Stamina                 : int  72 88 81 43 90 83 89 90 84 41 ...
##  $ Strength                : int  59 79 49 64 75 66 58 83 83 78 ...
##  $ LongShots               : int  94 93 82 12 91 80 82 85 59 12 ...
##  $ Aggression              : int  48 63 56 38 76 54 62 87 88 34 ...
##  $ Interceptions           : int  22 29 36 30 61 41 83 41 90 19 ...
##  $ Positioning             : int  94 95 89 12 87 87 79 92 60 11 ...
##  $ Vision                  : int  94 82 87 68 94 89 92 84 63 70 ...
##  $ Penalties               : int  75 85 81 40 79 86 82 85 75 11 ...
##  $ Composure               : int  96 95 94 68 88 91 84 85 82 70 ...
##  $ Marking                 : int  33 28 27 15 68 34 60 62 87 27 ...
##  $ StandingTackle          : int  28 31 24 21 58 27 76 45 92 12 ...
##  $ SlidingTackle           : int  26 23 33 13 51 22 73 38 91 18 ...
##  $ GKDiving                : int  6 7 9 90 15 11 13 27 11 86 ...
##  $ GKHandling              : int  11 11 9 85 13 12 9 25 8 92 ...
##  $ GKKicking               : int  15 15 15 87 5 6 7 31 9 78 ...
##  $ GKPositioning           : int  14 14 15 88 10 8 14 33 7 88 ...
##  $ GKReflexes              : int  8 11 11 94 13 8 9 37 11 89 ...
##  $ Release.Clause          : chr  "226.5" "127.1" "228.1" "138.6" ...
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
FIFA_MANU <- FIFA %>% 
  filter(Club == "Manchester United") #Claude Sonnet helped me figure this

head(FIFA_MANU, 10)
##           Name Age Nationality Overall Potential              Club Value Wage
## 1       De Gea  27       Spain      91        93 Manchester United    72  260
## 2     P. Pogba  25      France      87        91 Manchester United    64  210
## 3    R. Lukaku  25     Belgium      87        89 Manchester United  62.5  230
## 4    A. Snchez  29       Chile      85        85 Manchester United  37.5  215
## 5   A. Martial  22      France      84        90 Manchester United  42.5  165
## 6      N. Mati  29      Serbia      84        84 Manchester United    24  165
## 7    Juan Mata  30       Spain      83        83 Manchester United  24.5  160
## 8         Fred  25      Brazil      82        84 Manchester United  26.5  140
## 9   J. Lingard  25     England      82        83 Manchester United  26.5  140
## 10 M. Rashford  20     England      81        89 Manchester United    27  110
##    Special Preferred.Foot International.Reputation Weak.Foot Skill.Moves
## 1     1471          Right                        4         3           1
## 2     2247          Right                        4         4           5
## 3     2031           Left                        3         3           3
## 4     2172          Right                        4         3           4
## 5     2064          Right                        3         3           4
## 6     2100           Left                        3         3           3
## 7     1984           Left                        3         3           4
## 8     2180           Left                        1         4           4
## 9     2095          Right                        2         3           4
## 10    2062          Right                        2         4           4
##         Work.Rate Position Jersey.Number Contract.Valid.Until Height   Weight
## 1  Medium/ Medium       GK             1                 2020 193.04 76.20352
## 2       High/ Low      RDM             6                 2021 193.04 83.91459
## 3  Medium/ Medium       ST             9                 2022 190.50 93.89362
## 4      High/ High       RW             7                 2022 170.18 73.93556
## 5  Medium/ Medium       LW            11                 2019 182.88 76.20352
## 6    Medium/ High      CDM            31                 2020 193.04 84.82177
## 7  Medium/ Medium       RM             8                 2019 170.18 63.04934
## 8      High/ High       CM            17                 2023 170.18 63.95652
## 9      High/ High      CAM             7                 2021 175.26 62.14215
## 10   High/ Medium       LW            11                 2020 185.42 69.85322
##      LS   ST   RS   LW   LF   CF   RF   RW  LAM  CAM  RAM   LM  LCM   CM  RCM
## 1                                                                            
## 2  81+3 81+3 81+3 82+3 82+3 82+3 82+3 82+3 83+3 83+3 83+3 83+3 84+3 84+3 84+3
## 3  84+3 84+3 84+3 79+3 81+3 81+3 81+3 79+3 78+3 78+3 78+3 79+3 72+3 72+3 72+3
## 4  81+3 81+3 81+3 82+3 82+3 82+3 82+3 82+3 82+3 82+3 82+3 82+3 77+3 77+3 77+3
## 5  81+3 81+3 81+3 82+3 82+3 82+3 82+3 82+3 80+3 80+3 80+3 81+3 73+3 73+3 73+3
## 6  73+3 73+3 73+3 72+3 74+3 74+3 74+3 72+3 74+3 74+3 74+3 74+3 79+3 79+3 79+3
## 7  74+3 74+3 74+3 80+3 80+3 80+3 80+3 80+3 82+3 82+3 82+3 80+3 77+3 77+3 77+3
## 8  74+2 74+2 74+2 77+2 77+2 77+2 77+2 77+2 79+2 79+2 79+2 78+2 80+2 80+2 80+2
## 9  78+2 78+2 78+2 81+2 81+2 81+2 81+2 81+2 81+2 81+2 81+2 80+2 76+2 76+2 76+2
## 10 79+2 79+2 79+2 80+2 80+2 80+2 80+2 80+2 78+2 78+2 78+2 79+2 72+2 72+2 72+2
##      RM  LWB  LDM  CDM  RDM  RWB   LB  LCB   CB  RCB   RB Crossing Finishing
## 1                                                               17        13
## 2  83+3 77+3 78+3 78+3 78+3 77+3 75+3 74+3 74+3 74+3 75+3       80        73
## 3  79+3 60+3 58+3 58+3 58+3 60+3 57+3 54+3 54+3 54+3 57+3       78        87
## 4  82+3 65+3 64+3 64+3 64+3 65+3 62+3 57+3 57+3 57+3 62+3       77        80
## 5  81+3 64+3 60+3 60+3 60+3 64+3 61+3 54+3 54+3 54+3 61+3       76        84
## 6  74+3 78+3 82+3 82+3 82+3 78+3 77+3 80+3 80+3 80+3 77+3       71        64
## 7  80+3 61+3 60+3 60+3 60+3 61+3 56+3 46+3 46+3 46+3 56+3       83        78
## 8  78+2 78+2 79+2 79+2 79+2 78+2 77+2 73+2 73+2 73+2 77+2       67        74
## 9  80+2 70+2 67+2 67+2 67+2 70+2 67+2 60+2 60+2 60+2 67+2       74        78
## 10 79+2 63+2 59+2 59+2 59+2 63+2 60+2 53+2 53+2 53+2 60+2       75        78
##    HeadingAccuracy ShortPassing Volleys Dribbling Curve FKAccuracy LongPassing
## 1               21           50      13        18    21         19          51
## 2               73           86      85        87    84         82          90
## 3               86           77      79        80    74         66          73
## 4               73           77      83        87    79         78          75
## 5               69           77      74        87    84         54          60
## 6               74           84      73        80    72         67          83
## 7               56           85      71        82    84         86          79
## 8               55           85      70        79    70         72          80
## 9               64           78      70        83    80         63          66
## 10              71           75      72        83    77         78          65
##    BallControl Acceleration SprintSpeed Agility Reactions Balance ShotPower
## 1           42           57          58      60        90      43        31
## 2           90           71          79      74        81      64        90
## 3           72           77          90      60        86      46        88
## 4           86           86          79      90        83      87        84
## 5           86           88          89      85        81      81        84
## 6           79           52          59      44        83      50        83
## 7           88           69          62      84        85      89        75
## 8           86           77          79      84        82      87        76
## 9           83           84          82      86        83      86        80
## 10          80           90          93      88        79      77        87
##    Jumping Stamina Strength LongShots Aggression Interceptions Positioning
## 1       67      43       64        12         38            30          12
## 2       83      88       89        81         78            66          81
## 3       71      84       94        74         75            27          89
## 4       87      83       72        81         79            46          84
## 5       74      75       75        80         58            42          83
## 6       67      84       85        75         80            86          69
## 7       70      71       37        72         50            39          83
## 8       83      87       61        76         73            80          69
## 9       63      87       53        80         73            53          86
## 10      68      79       71        77         70            42          81
##    Vision Penalties Composure Marking StandingTackle SlidingTackle GKDiving
## 1      68        40        68      15             21            13       90
## 2      87        81        87      66             70            68        5
## 3      76        78        83      30             30            30        8
## 4      82        77        84      38             44            35       10
## 5      73        81        79      38             39            36        9
## 6      73        64        84      83             84            75        7
## 7      85        81        87      42             31            21        9
## 8      76        65        82      76             78            69        7
## 9      82        65        84      65             50            44       14
## 10     74        74        73      32             40            33       11
##    GKHandling GKKicking GKPositioning GKReflexes Release.Clause
## 1          85        87            88         94          138.6
## 2           6         2             4          3          123.2
## 3          15        14             7         10          120.3
## 4          10        15            12         13           69.4
## 5           8         8            15         11           87.1
## 6          15        12            14          9           44.4
## 7          10        14             5          8           45.3
## 8          16        15            11         15             51
## 9          10         8            13          9             51
## 10          6        15             7         14           55.4
tail(FIFA_MANU, 10)
##            Name Age Nationality Overall Potential              Club Value Wage
## 24     L. Grant  35     England      74        74 Manchester United   1.3   39
## 25  Diogo Dalot  19    Portugal      72        84 Manchester United   4.7   26
## 26 S. McTominay  21    Scotland      71        81 Manchester United   3.8   43
## 27     A. Gomes  17     England      67        87 Manchester United   1.5   15
## 28     T. Chong  18 Netherlands      65        85 Manchester United   1.1   13
## 29  E. Hamilton  19    Scotland      65        78 Manchester United     1   11
## 30   C. Gribbin  19     England      65        80 Manchester United   1.2   11
## 31     R. Poole  20       Wales      64        75 Manchester United   675   13
## 32  R. Williams  19     England      64        79 Manchester United   875    8
## 33     J. Bohui  19     England      63        76 Manchester United   700   10
##    Special Preferred.Foot International.Reputation Weak.Foot Skill.Moves
## 24    1300          Right                        1         4           1
## 25    1906          Right                        1         3           3
## 26    1847          Right                        1         3           3
## 27    1722          Right                        1         4           4
## 28    1733           Left                        1         4           4
## 29    1734           Left                        1         3           3
## 30    1669           Left                        1         3           3
## 31    1572          Right                        1         3           2
## 32    1479          Right                        1         3           2
## 33    1556          Right                        1         3           3
##         Work.Rate Position Jersey.Number Contract.Valid.Until Height   Weight
## 24 Medium/ Medium       GK            13                 2020 193.04 83.00740
## 25   High/ Medium       RB            20                 2023 182.88 71.21400
## 26 Medium/ Medium       CM            17                 2021 193.04 87.99692
## 27 Medium/ Medium      CAM            47                 2021 160.02 60.78138
## 28     High/ High       RW            44                 2019 182.88 69.85322
## 29   Medium/ High       CM            48                 2020 185.42 74.84274
## 30 Medium/ Medium      CAM            42                 2019 182.88 72.12119
## 31 Medium/ Medium       CB            50                 2019 180.34 73.93556
## 32 Medium/ Medium       CB            52                 2019 182.88 74.84274
## 33     High/ High       ST            46                 2019 175.26 74.84274
##      LS   ST   RS   LW   LF   CF   RF   RW  LAM  CAM  RAM   LM  LCM   CM  RCM
## 24                                                                           
## 25 67+2 67+2 67+2 68+2 68+2 68+2 68+2 68+2 66+2 66+2 66+2 69+2 66+2 66+2 66+2
## 26 66+2 66+2 66+2 66+2 66+2 66+2 66+2 66+2 67+2 67+2 67+2 67+2 69+2 69+2 69+2
## 27 60+2 60+2 60+2 66+2 64+2 64+2 64+2 66+2 66+2 66+2 66+2 65+2 62+2 62+2 62+2
## 28 62+2 62+2 62+2 65+2 63+2 63+2 63+2 65+2 64+2 64+2 64+2 64+2 59+2 59+2 59+2
## 29 62+2 62+2 62+2 61+2 62+2 62+2 62+2 61+2 63+2 63+2 63+2 61+2 63+2 63+2 63+2
## 30 61+2 61+2 61+2 64+2 63+2 63+2 63+2 64+2 64+2 64+2 64+2 64+2 61+2 61+2 61+2
## 31 48+2 48+2 48+2 51+2 51+2 51+2 51+2 51+2 53+2 53+2 53+2 54+2 56+2 56+2 56+2
## 32 46+2 46+2 46+2 47+2 46+2 46+2 46+2 47+2 48+2 48+2 48+2 48+2 49+2 49+2 49+2
## 33 61+2 61+2 61+2 62+2 62+2 62+2 62+2 62+2 61+2 61+2 61+2 60+2 52+2 52+2 52+2
##      RM  LWB  LDM  CDM  RDM  RWB   LB  LCB   CB  RCB   RB Crossing Finishing
## 24                                                              19        17
## 25 69+2 72+2 69+2 69+2 69+2 72+2 71+2 70+2 70+2 70+2 71+2       75        52
## 26 67+2 68+2 71+2 71+2 71+2 68+2 68+2 70+2 70+2 70+2 68+2       66        58
## 27 65+2 53+2 51+2 51+2 51+2 53+2 51+2 43+2 43+2 43+2 51+2       61        61
## 28 64+2 56+2 53+2 53+2 53+2 56+2 54+2 51+2 51+2 51+2 54+2       66        61
## 29 61+2 59+2 62+2 62+2 62+2 59+2 59+2 60+2 60+2 60+2 59+2       57        58
## 30 64+2 54+2 51+2 51+2 51+2 54+2 51+2 45+2 45+2 45+2 51+2       62        54
## 31 54+2 58+2 61+2 61+2 61+2 58+2 59+2 62+2 62+2 62+2 59+2       34        28
## 32 48+2 55+2 57+2 57+2 57+2 55+2 57+2 62+2 62+2 62+2 57+2       32        27
## 33 60+2 44+2 41+2 41+2 41+2 44+2 41+2 37+2 37+2 37+2 41+2       45        62
##    HeadingAccuracy ShortPassing Volleys Dribbling Curve FKAccuracy LongPassing
## 24              14           43      15        11    17         19          40
## 25              65           69      44        73    75         44          58
## 26              72           75      53        65    50         34          69
## 27              51           67      57        68    65         68          65
## 28              50           62      59        68    67         60          58
## 29              64           69      52        61    54         50          64
## 30              54           66      44        69    64         72          63
## 31              60           64      25        55    40         30          62
## 32              63           58      37        51    35         36          55
## 33              51           58      48        62    48         42          35
##    BallControl Acceleration SprintSpeed Agility Reactions Balance ShotPower
## 24          34           52          46      56        69      56        24
## 25          74           73          73      69        76      63        76
## 26          73           62          65      61        67      51        71
## 27          68           75          69      83        62      90        61
## 28          61           78          77      76        53      56        60
## 29          65           60          55      62        61      60        70
## 30          67           70          68      62        60      66        65
## 31          61           70          65      69        57      70        32
## 32          50           72          74      58        52      59        43
## 33          65           75          78      71        59      73        59
##    Jumping Stamina Strength LongShots Aggression Interceptions Positioning
## 24      73      39       71        19         42            26          14
## 25      78      79       71        59         80            68          68
## 26      66      71       78        61         72            73          61
## 27      55      57       32        64         42            37          58
## 28      64      63       66        62         65            42          66
## 29      61      66       68        68         70            59          59
## 30      54      65       60        62         50            42          62
## 31      78      71       70        32         65            57          44
## 32      65      41       68        30         66            56          29
## 33      66      62       64        59         66            21          64
##    Vision Penalties Composure Marking StandingTackle SlidingTackle GKDiving
## 24     50        20        60      12             13            19       74
## 25     54        43        73      72             68            67       10
## 26     71        59        74      68             69            64        9
## 27     68        66        69      36             38            35       14
## 28     65        44        60      43             46            42       13
## 29     63        51        54      57             54            53        7
## 30     64        56        58      22             35            40        7
## 31     47        37        55      61             64            61       16
## 32     43        49        51      63             68            66        7
## 33     57        64        57      20             16            16        9
##    GKHandling GKKicking GKPositioning GKReflexes Release.Clause
## 24         72        74            74         76            2.5
## 25          6        10             6          8            9.6
## 26          6         6            10         11            7.8
## 27         15        14             6         14            4.3
## 28          7        14             8         11            3.2
## 29         11         5             9         11            2.5
## 30         11        12             7         14            2.9
## 31         15        13             7         12            1.4
## 32          5         6             6          9            2.2
## 33          7        10            13         11            1.7
str(FIFA_MANU)
## 'data.frame':    33 obs. of  80 variables:
##  $ Name                    : chr  "De Gea" "P. Pogba" "R. Lukaku" "A. Snchez" ...
##  $ Age                     : int  27 25 25 29 22 29 30 25 25 20 ...
##  $ Nationality             : Factor w/ 164 levels "Afghanistan",..: 141 55 14 30 55 135 141 21 47 47 ...
##  $ Overall                 : int  91 87 87 85 84 84 83 82 82 81 ...
##  $ Potential               : int  93 91 89 85 90 84 83 84 83 89 ...
##  $ Club                    : Factor w/ 652 levels ""," SSV Jahn Regensburg",..: 380 380 380 380 380 380 380 380 380 380 ...
##  $ Value                   : chr  "72" "64" "62.5" "37.5" ...
##  $ Wage                    : chr  "260" "210" "230" "215" ...
##  $ Special                 : int  1471 2247 2031 2172 2064 2100 1984 2180 2095 2062 ...
##  $ Preferred.Foot          : Factor w/ 3 levels "","Left","Right": 3 3 2 3 3 2 2 2 3 3 ...
##  $ International.Reputation: int  4 4 3 4 3 3 3 1 2 2 ...
##  $ Weak.Foot               : int  3 4 3 3 3 3 3 4 3 4 ...
##  $ Skill.Moves             : int  1 5 3 4 4 3 4 4 4 4 ...
##  $ Work.Rate               : Factor w/ 10 levels "","High/ High",..: 10 3 10 2 10 8 10 2 2 4 ...
##  $ Position                : Factor w/ 28 levels "","CAM","CB",..: 7 22 28 26 16 4 24 6 2 16 ...
##  $ Jersey.Number           : int  1 6 9 7 11 31 8 17 7 11 ...
##  $ Contract.Valid.Until    : Factor w/ 37 levels "","2018","2019",..: 4 5 6 6 3 4 3 7 5 4 ...
##  $ Height                  : num  193 193 190 170 183 ...
##  $ Weight                  : num  76.2 83.9 93.9 73.9 76.2 ...
##  $ LS                      : Factor w/ 94 levels "","31+2","32+2",..: 1 83 88 83 83 67 69 68 76 78 ...
##  $ ST                      : Factor w/ 94 levels "","31+2","32+2",..: 1 83 88 83 83 67 69 68 76 78 ...
##  $ RS                      : Factor w/ 94 levels "","31+2","32+2",..: 1 83 88 83 83 67 69 68 76 78 ...
##  $ LW                      : Factor w/ 106 levels "","25+2","27+2",..: 1 96 90 96 96 75 92 84 93 91 ...
##  $ LF                      : Factor w/ 103 levels "","27+2","29+2",..: 1 91 89 91 91 74 86 79 88 85 ...
##  $ CF                      : Factor w/ 103 levels "","27+2","29+2",..: 1 91 89 91 91 74 86 79 88 85 ...
##  $ RF                      : Factor w/ 103 levels "","27+2","29+2",..: 1 91 89 91 91 74 86 79 88 85 ...
##  $ RW                      : Factor w/ 106 levels "","25+2","27+2",..: 1 96 90 96 96 75 92 84 93 91 ...
##  $ LAM                     : Factor w/ 102 levels "","27+2","28+2",..: 1 93 83 92 88 75 92 84 89 82 ...
##  $ CAM                     : Factor w/ 102 levels "","27+2","28+2",..: 1 93 83 92 88 75 92 84 89 82 ...
##  $ RAM                     : Factor w/ 102 levels "","27+2","28+2",..: 1 93 83 92 88 75 92 84 89 82 ...
##  $ LM                      : Factor w/ 101 levels "","27+2","28+2",..: 1 93 85 91 89 74 87 82 86 84 ...
##  $ LCM                     : Factor w/ 93 levels "","30+2","31+2",..: 1 89 63 74 65 78 74 80 71 62 ...
##  $ CM                      : Factor w/ 93 levels "","30+2","31+2",..: 1 89 63 74 65 78 74 80 71 62 ...
##  $ RCM                     : Factor w/ 93 levels "","30+2","31+2",..: 1 89 63 74 65 78 74 80 71 62 ...
##  $ RM                      : Factor w/ 101 levels "","27+2","28+2",..: 1 93 85 91 89 74 87 82 86 84 ...
##  $ LWB                     : Factor w/ 96 levels "","30+2","31+2",..: 1 83 48 58 56 85 50 84 68 53 ...
##  $ LDM                     : Factor w/ 100 levels "","28+2","29+2",..: 1 86 45 57 49 94 49 87 62 46 ...
##  $ CDM                     : Factor w/ 100 levels "","28+2","29+2",..: 1 86 45 57 49 94 49 87 62 46 ...
##  $ RDM                     : Factor w/ 100 levels "","28+2","29+2",..: 1 86 45 57 49 94 49 87 62 46 ...
##  $ RWB                     : Factor w/ 96 levels "","30+2","31+2",..: 1 83 48 58 56 85 50 84 68 53 ...
##  $ LB                      : Factor w/ 99 levels "","29+2","30+2",..: 1 83 46 56 54 87 44 86 66 51 ...
##  $ LCB                     : Factor w/ 109 levels "","25+2","27+2",..: 1 87 46 52 46 99 29 84 57 43 ...
##  $ CB                      : Factor w/ 109 levels "","25+2","27+2",..: 1 87 46 52 46 99 29 84 57 43 ...
##  $ RCB                     : Factor w/ 109 levels "","25+2","27+2",..: 1 87 46 52 46 99 29 84 57 43 ...
##  $ RB                      : Factor w/ 99 levels "","29+2","30+2",..: 1 83 46 56 54 87 44 86 66 51 ...
##  $ Crossing                : int  17 80 78 77 76 71 83 67 74 75 ...
##  $ Finishing               : int  13 73 87 80 84 64 78 74 78 78 ...
##  $ HeadingAccuracy         : int  21 73 86 73 69 74 56 55 64 71 ...
##  $ ShortPassing            : int  50 86 77 77 77 84 85 85 78 75 ...
##  $ Volleys                 : int  13 85 79 83 74 73 71 70 70 72 ...
##  $ Dribbling               : int  18 87 80 87 87 80 82 79 83 83 ...
##  $ Curve                   : int  21 84 74 79 84 72 84 70 80 77 ...
##  $ FKAccuracy              : int  19 82 66 78 54 67 86 72 63 78 ...
##  $ LongPassing             : int  51 90 73 75 60 83 79 80 66 65 ...
##  $ BallControl             : int  42 90 72 86 86 79 88 86 83 80 ...
##  $ Acceleration            : int  57 71 77 86 88 52 69 77 84 90 ...
##  $ SprintSpeed             : int  58 79 90 79 89 59 62 79 82 93 ...
##  $ Agility                 : int  60 74 60 90 85 44 84 84 86 88 ...
##  $ Reactions               : int  90 81 86 83 81 83 85 82 83 79 ...
##  $ Balance                 : int  43 64 46 87 81 50 89 87 86 77 ...
##  $ ShotPower               : int  31 90 88 84 84 83 75 76 80 87 ...
##  $ Jumping                 : int  67 83 71 87 74 67 70 83 63 68 ...
##  $ Stamina                 : int  43 88 84 83 75 84 71 87 87 79 ...
##  $ Strength                : int  64 89 94 72 75 85 37 61 53 71 ...
##  $ LongShots               : int  12 81 74 81 80 75 72 76 80 77 ...
##  $ Aggression              : int  38 78 75 79 58 80 50 73 73 70 ...
##  $ Interceptions           : int  30 66 27 46 42 86 39 80 53 42 ...
##  $ Positioning             : int  12 81 89 84 83 69 83 69 86 81 ...
##  $ Vision                  : int  68 87 76 82 73 73 85 76 82 74 ...
##  $ Penalties               : int  40 81 78 77 81 64 81 65 65 74 ...
##  $ Composure               : int  68 87 83 84 79 84 87 82 84 73 ...
##  $ Marking                 : int  15 66 30 38 38 83 42 76 65 32 ...
##  $ StandingTackle          : int  21 70 30 44 39 84 31 78 50 40 ...
##  $ SlidingTackle           : int  13 68 30 35 36 75 21 69 44 33 ...
##  $ GKDiving                : int  90 5 8 10 9 7 9 7 14 11 ...
##  $ GKHandling              : int  85 6 15 10 8 15 10 16 10 6 ...
##  $ GKKicking               : int  87 2 14 15 8 12 14 15 8 15 ...
##  $ GKPositioning           : int  88 4 7 12 15 14 5 11 13 7 ...
##  $ GKReflexes              : int  94 3 10 13 11 9 8 15 9 14 ...
##  $ Release.Clause          : chr  "138.6" "123.2" "120.3" "69.4" ...
summary(FIFA_MANU$Penalties)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   16.00   49.00   59.00   57.85   66.00   81.00
summary(FIFA_MANU$Agility)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   44.00   60.00   69.00   69.21   78.00   90.00
table(FIFA_MANU$Preferred.Foot)
## 
##        Left Right 
##     0     9    24

#Chart 1;Basic Scatterplot

library(ggplot2)
library(tibble)
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ forcats   1.0.0     ✔ readr     2.1.5
## ✔ lubridate 1.9.4     ✔ stringr   1.5.1
## ✔ purrr     1.1.0     ✔ tidyr     1.3.1
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
p <- ggplot(data = FIFA_MANU,
            mapping = aes(x = Penalties,
                          y = Agility, color= Preferred.Foot))+ geom_point(size=3)

p

#Chart 2:

p2<- ggplot(data=FIFA_MANU,mapping = aes(x=Penalties,y=Agility, color=Preferred.Foot))+geom_point()+geom_smooth(method = "loess")+scale_x_log10()
p2
## `geom_smooth()` using formula = 'y ~ x'

This would be better with more data points.

#Chart 3

p3<- ggplot(data=FIFA_MANU,mapping = aes(x=Penalties,y=Agility, color=Preferred.Foot))+geom_area()

p3

#Final Chart

finalchart<-ggplot(data=FIFA_MANU,mapping = aes(x=Penalties,y=Agility, color=Preferred.Foot))+geom_point(size=3, alpha=0.7) + labs(x= "Penalty rating",y = "Agility Rating", title = "Penalties and Agility and Primary Foot for Manchester",subtitle = "Players who have high Agility also score high in penalties",  color = "Preferred Foot", caption = "Source: FIFA Dataset (datasetsICR package)")+ theme_minimal()
finalchart

#Chart explanation - Agility and Penalty increase together.
-As Penalties increase, so does the rate of Lefties.
- Most players on Manchester United are high in both agility and penalty.