futbin_plot: futbin_plot makes an interactive radar plot of the stats of...

Description Usage Arguments Value Examples

View source: R/futbin_plot.R

Description

futbin_plot makes an interactive radar plot of the stats of the players.

Usage

1

Arguments

df

dataframe generated with columns 'pace', 'sho', 'pas', 'dri', 'def', 'phy', 'name', 'rating' and 'version'. This dataframe can be obtained from function futbin_search.

gk

Optional. If 'TRUE', the labels of the plot are the main stats for goalkeepers: diving, handling, kicking, reflexes, speed and position.

Value

An interactive radar plot of the stats.

Examples

 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)

danielredondo/rfutbin documentation built on Dec. 19, 2021, 8:07 p.m.