plot_ranks {DynaRankR}R Documentation

Plot individual ranks or scores

Description

Plot ranks of individuals in a single social group over multiple study periods.

Usage

plot_ranks(ranks, type = c("rank", "stan.rank", "score"))

Arguments

ranks

A dataframe of ranks. There should be one row per contestant per study period. Must include at least the following columns:

period

Study periods. They should appear in chronological order.

id

The identity of each contestant. Each contestant should appear once per study period.

rank

The rank of each contestant in each study period. This can be absolute rank or standardized rank. Only required if type is 'rank'.

score

The score of each contestant. Only required if type is 'score'.

type

A character string, either 'score', 'rank', or 'stan.rank'. Determines whether scores, ranks, or standardized ranks are plotted.

Examples

female.ranks <- informed_elo(contestants = C.crocuta.female$contestants, convention = 'mri',
initial.ranks = C.crocuta.female$initial.ranks,
interactions = C.crocuta.female$interactions)

plot_ranks(female.ranks, type = 'rank')
plot_ranks(female.ranks, type = 'score')
plot_ranks(female.ranks, type = 'stan.rank')


[Package DynaRankR version 1.1.0 Index]