plot_single_match: Plotting the Dixon Coles prediction with a confidence...

Description Usage Arguments Details Examples

View source: R/prediction_plots.R

Description

This function allows the user to plot the Dixon Coles estimate in a 2d diagram with the home team on the x axis and the away team on the y axis.

Usage

1
plot_single_match(game_data, estimate, home, away)

Arguments

game_data

Output of all_game_data with parameter team = NA

estimate

Output of estimate_params using the same data

home

Home team name as a string

away

Away team name as a string

Details

Red point The final full time score for a past match
Black circle The point estimate
Black box Confidence interval as generated in estimate_params

Examples

1
2
3
4
5
6
7
my_games <- all_game_data(amateuR::kreisliga_goettingen)
estimate <- estimate_params(data = my_games, alpha = 0.9)

plot_single_match(
  game_data = my_games, estimate = estimate,
  home = "RSV Göttingen 05", away = "TSC Dorste"
)

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