hist.rating: Histogram Plotting for a Rating Object

Description Usage Arguments See Also Examples

Description

Plot histograms of estimated ratings or other features, including full history progressions.

Usage

1
2
3
4
## S3 method for class 'rating'
hist(x, which = "Rating", tng=15, history = FALSE, log = FALSE, 
  xlab = which, main = paste(x$type," Ratings System"), density = FALSE, 
  add = FALSE, ...)

Arguments

x

An object of class "rating".

which

The variable to be plotted.

tng

A single value. If the number of games played by the player is below this value, the player is not depicted on the plot.

history

If TRUE, a histogram is plotted for every single time point. Only available if the history was retained in x.

log

The log(x+1) transform. May be useful if plotting e.g. the number of games.

xlab,main

Graphical parameters.

density

If TRUE, plot a density estimate rather than a histogram.

add

Add to an existing plot? Only relevant for density estimates.

...

Other parameters to be passed through to plotting functions.

See Also

plot.rating

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
afl <- aflodds[,c(2,3,4,7)]
robj <- steph(afl)
hist(robj, xlim = c(1900,2500), density=TRUE)

afl <- aflodds[,c(2,3,4,7)]
robj <- steph(afl, history=TRUE)
hist(robj, history=TRUE, xlim = c(1900,2500), density=TRUE)

robj <- elom(riichi)
hist(robj, xlim = c(1100,1900))

robj <- elom(riichi, history=TRUE)
hist(robj, history=TRUE, xlim = c(1100,1900))

Example output



PlayerRatings documentation built on March 1, 2020, 5:07 p.m.