plot_performance: Graph the Team Performance of Different Teams.

Description Usage Arguments Examples

Description

This function plots the team performance of different teams from England.

Usage

1
plot_performance(data, perfrm_vars, teams, all = FALSE)

Arguments

data

the data set of merged data

perfrm_vars

the performance variables that want to compare

teams

the team names of given teams

all

If all is true, it will give the performance comparison of all teams. The default value of all is FALSE.

Examples

1
2
3
4
# Example: Graph the Performance of Different Teams

teams <- c("Liverpool", "Chelsea", "Arsenal", "Chelsea", "everton", "fulham")
plot_performance(football.teams, teams, perfrm_vars = c("points", "won", "loss"))

XingfuXu/football documentation built on May 14, 2019, 5:15 a.m.