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 for a given team.
Use the optional argument method
to return all or just future matches.
1 | plot_predictions(game_data, estimate, team_name, method = "future")
|
game_data |
Output of |
estimate |
Output of |
team_name |
Home team name as a string |
method |
|
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 | my_games <- all_game_data(amateuR::kreisliga_goettingen)
estimate <- estimate_params(data = my_games, alpha = 0.9)
plot_predictions(game_data = my_games, estimate = estimate, "RSV Göttingen 05", method = "allH")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.