Skip to contents

Creates a horizontal bar chart of top-N players by ELO rating.

Usage

plot_ranking(
  rating_type = "batting",
  match_type = "t20",
  top_n = 15,
  db_path = NULL
)

Arguments

rating_type

Character. "batting" or "bowling".

match_type

Character. Match format: "t20", "odi", "test".

top_n

Integer. Number of players to show (default 15).

db_path

Character. Database path.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
plot_ranking("batting", "t20")
plot_ranking("bowling", "test", top_n = 10)
} # }