How to plot a pie chart in R using the UK Premier League top goal scorers for season 2023/24 data.

Опубликовано: 04 Ноябрь 2024
на канале: tondekush
6
0

Please not angle brackets aren't allowed in the description portal.
Put a less than bracket after x and players.

Code:
x -c(27,22,21,19,19,19,18,17,16,16)
players -c("Erling Haaland","Cole Palmer", "Alex Isak","Phil Foden","Dominic Solanke","Ollie Watkins","Mohamed Salah","Son Heung-Min","Jarrod Bowen","Jean-Philippe Mateta")
pie(x, label = players, main = "Top Goal Scorers for the 2023/24 UK Premier League Season")
barplot(x, names.arg=players)

#premierleague #statistics #rstats #uk