eloplot: Elo rating plots

View source: R/eloplot.r

eloplotR Documentation

Elo rating plots

Description

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

Usage

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

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)

gobbios/EloRating documentation built on July 19, 2024, 4:05 a.m.