rank_plot | R Documentation |
Plots the official (ATP or WTA) rates.
rank_plot(x, players, line_width = 1.5, nbreaks = 1)
x |
An object of class 'welo', obtained after running the |
players |
A character vector including the players whose rates will be plotted. The indication of the player has to be: 'Surname N.'. For instance, 'Roger Federer' will be included in the 'players' vector as 'Federer R.' |
line_width |
optional Line width, by default it is 1.5 |
nbreaks |
optional Number of breaks for y-axis, by default it is 1 |
A ggplot2 plot
db<-tennis_data("2022","ATP")
db_clean<-clean(db,MNM=5)
res_welo<-welofit(db_clean)
players<-c("Nadal R.","Djokovic N.","Berrettini M.","Sinner J.")
rank_plot(res_welo,players,line_width=1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.