plot_scores {EloSteepness}R Documentation

plot posteriors of individual scores

Description

either summed winning probabilities or David's scores

Usage

plot_scores(
  x,
  adjustpar = 4,
  color = TRUE,
  subset_ids = NULL,
  include_others = TRUE
)

Arguments

x

result from elo_steepness_from_matrix, elo_steepness_from_sequence or davids_steepness

adjustpar

numeric, parameter for smoothing posterior of individual scores

color

logical, default is TRUE where individuals get color-coded. If FALSE: a gray scale is used. It is also possible to hand over a vector with colors, which then must correspond in length to the number of individuals.

subset_ids

character, plot only those individual codes. Default is NULL, i.e. all individuals are included in the plot.

include_others

logical, should other IDs (those not in subset_ids) be included as contours. Default is TRUE. This only has an effect if subset_ids is different from NULL,

Value

a plot

Examples

data(dommats, package = "EloRating")

res <- elo_steepness_from_matrix(dommats$elephants, n_rand = 1,
                                 silent = TRUE, refresh = 0,
                                 iter = 1000, warmup = 500)
plot_scores(res)

res <- davids_steepness(dommats$elephants, refresh = 0)
plot_scores(res)
plot_scores(res, color = FALSE)
plot_scores(res, adjustpar = 0.3)

[Package EloSteepness version 0.5.0 Index]