Description Usage Arguments Value Examples
futbin_plot makes an interactive radar plot of the stats of the players.
1 | futbin_plot(df, gk = FALSE)
|
df |
dataframe generated with columns 'pace', 'sho', 'pas', 'dri', 'def', 'phy',
'name', 'rating' and 'version'.
This dataframe can be obtained from function |
gk |
Optional. If 'TRUE', the labels of the plot are the main stats for goalkeepers: diving, handling, kicking, reflexes, speed and position. |
An interactive radar plot of the stats.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Plot comparing Van Dijk and Messi
players <- futbin_search(name = c("Van Dijk", "Lionel Messi"), version = "Rare")
futbin_plot(players)
# Plot comparing goalkeepers
some_goalkeepers <- futbin_search(name = c("De Gea", "Kepa", "Hugo Lloris"), version = "Rare")
futbin_plot(some_goalkeepers, gk = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.