plot.mELO_rating: Plot historical player ratings for a mELO_rating object

Description Usage Arguments Value Examples

View source: R/plot.mELO_rating.R

Description

Plot historical player ratings for a mELO_rating object fit with the ELO() or mELO() functions.

Usage

1
2
3
4
5
6
7
## S3 method for class 'mELO_rating'
plot(
  modelled_ratings,
  xlab = "Time Period",
  ylab = paste(modelled_ratings$type, "Ratings"),
  main = NULL
)

Arguments

modelled_ratings

An object of class mELO_rating.

xlab

Title for x axis.

ylab

Title for y axis.

main

Title for the plot.

x_labels

Custom labels for the x axis.

Value

a plot

Examples

1
2
3
4
5
# History of AFL ratings
head(afl_df)

afl_ELO <- ELO(afl_df[,1:4])
plot(afl_ELO)

dclaz/mELO documentation built on May 17, 2021, 2:27 a.m.