Description Usage Arguments Details Examples
View source: R/prediction_plots.R
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.
1 | plot_single_match(game_data, estimate, home, away)
|
game_data |
Output of |
estimate |
Output of |
home |
Home team name as a string |
away |
Away team name as a string |
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
|
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"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.