plot_goal_difference: Plot the goal differences

Description Usage Arguments Details Examples

View source: R/descriptive_plots.R

Description

This function plots the goal differences for one specified team.

Usage

1
plot_goal_difference(game_data, team, cumulated = TRUE)

Arguments

game_data

Output of the function all_game_data.

team

A team name as a string.

cumulated

If TRUE, the cummulated goal differences are plotted, if FALSE the individual differences for every game are plotted.

Details

Description of the colours of the data points:

Green Matches won
Orange Matches drawn
Red Matches lost

Examples

1
2
3
data <- all_game_data(amateuR::kreisliga_goettingen)
plot_goal_difference(game_data = data, team = "RSV Göttingen 05", cumulated = TRUE)
plot_goal_difference(game_data = data, team = "RSV Göttingen 05", cumulated = FALSE)

Niklas191/amateuR documentation built on Oct. 30, 2019, 10:14 p.m.