Learn R Programming

fbRanks (version 2.0)

plot.fbRanks: Plotting function for fbRanks Objects

Description

The rank.teams function outputs fbRanks objects. plot(fbRanks)., where fbRanks is one's output from a rank.teams call, will plot the rankings for each cluster of teams in the match data. Specific teams, regions, or leagues can be labeled on the plots.

Usage

"plot"( x, ..., which = "residuals", annotate = list(title = TRUE), team.resids = NULL, min.date = NULL, max.date = NULL)

Arguments

x
A fbRanks object.
...
Extra elements to filter the ranks with, e.g. country. Must be column names in scores or teams dataframes.
which
What to plot. Options are "residuals" and "hist". If "hist" then annotate needs Name element.
annotate
Info to add to title. If title=TRUE, then the team name is added to the plot.
team.resids
If which="residuals", the team residuals are needed. This is provided by residuals(x). This is time-consuming, so depending how plot is called, you might want to pass in the result of residuals(x) in the plot call.
min.date
Minimum date on the x-axis of a residuals plot.
max.date
Maximum date on the x-axis of a residuals plot.

Value

Some plots of team residuals and ranks relative to other teams.