rank_plot {welo}R Documentation

Plot for official (ATP or WTA) rates

Description

Plots the official (ATP or WTA) rates.

Usage

rank_plot(x, players, line_width = 1.5, nbreaks = 1)

Arguments

x

An object of class 'welo', obtained after running the welofit function

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

Value

A ggplot2 plot

Examples

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)

[Package welo version 0.1.4 Index]