url <- "https://www.pesmaster.com/arsenal/pes-2020/team/101/"

html <- read_html(url)

players <- html_nodes(html, ".squad-table") %>% html_table() %>% [[(1) %>% arrange(desc(Ovr)) %>% slice(1:10) %>% select(Name, Pas:Dri) %>% column_to_rownames("Name") %>% t() %>% as.data.frame() names(players) <- stringi::stri_trans_general(names(players), "latin-ascii") %>% # convert to latin-ascii make.names() %>% # valid names str_replace_all(".*\.+", "") # family name

ggplot(skillful_player_split, aes(x = ability, y = value)) + geom_col(aes(fill = ability)) + geom_text(aes(x = x, y = y, label = label), data = player_label)

ggplot(skillful_player_pmap, aes(x = ability, y = value)) + geom_col(aes(fill = ability)) + geom_text(aes(x = x, y = y, label = label), data = player_label)