plot_fbRanks: Plotting function for fbRanks Objects

Description Usage Arguments Value Author(s)

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

1
2
3
4
5
6
7
8
## S3 method for class 'fbRanks'
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.

Author(s)

Eli Holmes, Seattle, USA.

eeholmes(at)u(dot)washington(dot)com


fbRanks documentation built on May 1, 2019, 8:01 p.m.