eloplot: Elo rating plots

Description Usage Arguments Details Value Author(s) Examples

View source: R/eloplot.r

Description

plot Elo ratings for all or selected individuals over a specified time period

Usage

1
2
3
4
5
6
7
8
eloplot(
  eloobject,
  ids = "all",
  interpolate = "yes",
  from = "start",
  to = "end",
  color = TRUE
)

Arguments

eloobject

elo object, output of elo.seq function

ids

character, "all" will plot trajectories for all individuals within the dataset. "first.20" will plot the 20 first individuals. "random.20" will plot 20 randomly chosen individuals from the dataset. Alternatively, provide a list of individual IDs.

interpolate

character, by default ("yes") plot interpolated Elo values or plot Elo values without interpolation ("no")

from

character, either "start", i.e. the plotted date range will start at the first date of the dataset, or provide a custom date ("YYYY-MM-DD")

to

character, either "end", i.e. the plotted date range will end at the last date of the dataset, or provide a custom date ("YYYY-MM-DD")

color

logical, the plot is either colored (TRUE) or in black and white with symbols

Details

For a visual inspection of an Elo object it is useful to plot the calculated trajectories. We recommend not to plot trajectories for more than 20 individuals at once.

Note also, if plots for IDs are requested that had observations on only one day, these IDs are excluded from plotting and a corresponding warning message is produced.

Value

a plot

Author(s)

Lars Kulik and Christof Neumann

Examples

1
2
3
4
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
eloplot(SEQ, ids="all", interpolate="yes", from="start", to="end",
        color=TRUE)

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

[1] "loop 1: Elo calculations"

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |....                                                                  |   6%
  |                                                                            
  |......                                                                |   9%
  |                                                                            
  |........                                                              |  12%
  |                                                                            
  |...........                                                           |  15%
  |                                                                            
  |.............                                                         |  18%
  |                                                                            
  |...............                                                       |  21%
  |                                                                            
  |.................                                                     |  24%
  |                                                                            
  |...................                                                   |  27%
  |                                                                            
  |.....................                                                 |  30%
  |                                                                            
  |.......................                                               |  33%
  |                                                                            
  |.........................                                             |  36%
  |                                                                            
  |............................                                          |  39%
  |                                                                            
  |..............................                                        |  42%
  |                                                                            
  |................................                                      |  45%
  |                                                                            
  |..................................                                    |  48%
  |                                                                            
  |....................................                                  |  52%
  |                                                                            
  |......................................                                |  55%
  |                                                                            
  |........................................                              |  58%
  |                                                                            
  |..........................................                            |  61%
  |                                                                            
  |.............................................                         |  64%
  |                                                                            
  |...............................................                       |  67%
  |                                                                            
  |.................................................                     |  70%
  |                                                                            
  |...................................................                   |  73%
  |                                                                            
  |.....................................................                 |  76%
  |                                                                            
  |.......................................................               |  79%
  |                                                                            
  |.........................................................             |  82%
  |                                                                            
  |...........................................................           |  85%
  |                                                                            
  |..............................................................        |  88%
  |                                                                            
  |................................................................      |  91%
  |                                                                            
  |..................................................................    |  94%
  |                                                                            
  |....................................................................  |  97%
  |                                                                            
  |......................................................................| 100%
[1] "loop 2: Stability calculations"

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |....                                                                  |   6%
  |                                                                            
  |......                                                                |   9%
  |                                                                            
  |........                                                              |  12%
  |                                                                            
  |...........                                                           |  15%
  |                                                                            
  |.............                                                         |  18%
  |                                                                            
  |...............                                                       |  21%
  |                                                                            
  |.................                                                     |  24%
  |                                                                            
  |...................                                                   |  27%
  |                                                                            
  |.....................                                                 |  30%
  |                                                                            
  |.......................                                               |  33%
  |                                                                            
  |.........................                                             |  36%
  |                                                                            
  |............................                                          |  39%
  |                                                                            
  |..............................                                        |  42%
  |                                                                            
  |................................                                      |  45%
  |                                                                            
  |..................................                                    |  48%
  |                                                                            
  |....................................                                  |  52%
  |                                                                            
  |......................................                                |  55%
  |                                                                            
  |........................................                              |  58%
  |                                                                            
  |..........................................                            |  61%
  |                                                                            
  |.............................................                         |  64%
  |                                                                            
  |...............................................                       |  67%
  |                                                                            
  |.................................................                     |  70%
  |                                                                            
  |...................................................                   |  73%
  |                                                                            
  |.....................................................                 |  76%
  |                                                                            
  |.......................................................               |  79%
  |                                                                            
  |.........................................................             |  82%
  |                                                                            
  |...........................................................           |  85%
  |                                                                            
  |..............................................................        |  88%
  |                                                                            
  |................................................................      |  91%
  |                                                                            
  |..................................................................    |  94%
  |                                                                            
  |....................................................................  |  97%
  |                                                                            
  |......................................................................| 100%

EloRating documentation built on March 26, 2020, 7:29 p.m.