Title: | Reports from Volleyball Match Files |
---|---|
Description: | Functions for generating reports from volleyball match files. |
Authors: | Adrien Ickowicz [aut, cre], Ben Raymond [aut], Tyler Widdison [aut], Francesco Oleni [ctb], Willem de Wit [ctb], Marco Chiapello [ctb], Felipe Aparecido Lima [ctb], Mark Lebedew [ctb], openvolley.org [org] |
Maintainer: | Adrien Ickowicz <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.7.21 |
Built: | 2024-10-15 22:26:44 UTC |
Source: | https://github.com/openvolley/volleyreport |
Reporting of volleyball statistics
Maintainer: Adrien Ickowicz [email protected]
Authors:
Ben Raymond
Tyler Widdison
Other contributors:
Francesco Oleni [contributor]
Willem de Wit [contributor]
Marco Chiapello [contributor]
Felipe Aparecido Lima [contributor]
Mark Lebedew [contributor]
openvolley.org [originator]
Useful links:
Report bugs at https://github.com/openvolley/volleyreport/issues
Generate attack table
vr_attack(x, team, by = "player", file_type = "indoor", style = "default")
vr_attack(x, team, by = "player", file_type = "indoor", style = "default")
x |
datavolleyplays: the |
team |
string: team name |
by |
string: "player" or "set" |
file_type |
string: "indoor", "perana_indoor", "beach", "perana_beach" |
style |
string: see |
Generate block table
vr_block(x, team, by = "player", style = "default")
vr_block(x, team, by = "player", style = "default")
x |
datavolleyplays: the |
team |
string: team name |
by |
string: "player" or "set" |
style |
string: see |
Court plots
vr_court_plots(x, ...)
vr_court_plots(x, ...)
x |
datavolley or string: as returned by |
... |
: passed to downstream functions |
A ggplot object
## Not run: vr_court_plots(dv_example_file()) ## End(Not run)
## Not run: vr_court_plots(dv_example_file()) ## End(Not run)
Generate single-page match summary report
vr_match_summary( x, outfile, refx, vote = TRUE, format = "html", icon = NULL, css = vr_css(), remove_nonplaying = TRUE, style = "default", update_meta = FALSE, home_players = TRUE, visiting_players = TRUE, base_font_size = 11, court_plots_function = "vr_court_plots", court_plots_args = list(), plot_icons, skill_evaluation_decode = "guess", single_page_tries = 1L, shiny_progress = FALSE, chrome_print_extra_args = NULL, ... ) vr_css()
vr_match_summary( x, outfile, refx, vote = TRUE, format = "html", icon = NULL, css = vr_css(), remove_nonplaying = TRUE, style = "default", update_meta = FALSE, home_players = TRUE, visiting_players = TRUE, base_font_size = 11, court_plots_function = "vr_court_plots", court_plots_args = list(), plot_icons, skill_evaluation_decode = "guess", single_page_tries = 1L, shiny_progress = FALSE, chrome_print_extra_args = NULL, ... ) vr_css()
x |
datavolley or string: as returned by |
outfile |
string: path to file to produce (if not specified, will create a file in the temporary directory) |
refx |
data.frame: some choices of |
vote |
logical: include vote report component? If not explicitly specified, |
format |
string: "pdf" (using latex-based PDF), "paged_pdf" (using pagedown-based PDF), "png", "paged_png", or "html" |
icon |
string: (optional) filename of icon image to use |
css |
list: css specifications for some elements, giving (currently fairly limited) control over appearance. See the output of |
remove_nonplaying |
logical: if |
style |
string: can be
|
update_meta |
logical: should we update the match metadata before generating the report? Updating the match metadata will recalculate details such as set scores, player starting positions and substitution summaries, and set durations from the scouted play-by-play data |
home_players |
logical: include a table with individual player statistics for the home team? |
visiting_players |
logical: include a table with individual player statistics for the visiting team? |
base_font_size |
numeric: the base font size (the font sizes in different parts of the report are scaled relative to this) |
court_plots_function |
string or function: a function, or name of a function, that takes a datavolley object and produces a plot object. Supply your own function here to override the court plots that are included in the report for some values of |
court_plots_args |
list: named list of arguments to pass to the court plot function |
plot_icons |
logical or data.frame: some values of |
skill_evaluation_decode |
: as for |
single_page_tries |
integer: experimental! Ideally we want a single-page report, but until the report is rendered to PDF we don't know for sure whether it will fit on one page. If |
shiny_progress |
logical: if |
chrome_print_extra_args |
character: additional parameters to pass as |
... |
: additional parameters passed to the rmarkdown template |
The path to the report file
## Not run: f <- vr_match_summary(dv_example_file(), format = "paged_pdf") if (interactive()) browseURL(f) ## End(Not run)
## Not run: f <- vr_match_summary(dv_example_file(), format = "paged_pdf") if (interactive()) browseURL(f) ## End(Not run)
Score evolution plot
vr_plot_icons() vr_score_evplot( x, with_summary = FALSE, use_icons = FALSE, icons, home_colour = "darkblue", visiting_colour = "darkred", low_colour = "#800000", mid_colour = "#202020", high_colour = "#008000", font_size = 12 )
vr_plot_icons() vr_score_evplot( x, with_summary = FALSE, use_icons = FALSE, icons, home_colour = "darkblue", visiting_colour = "darkred", low_colour = "#800000", mid_colour = "#202020", high_colour = "#008000", font_size = 12 )
x |
datavolley or string: as returned by |
with_summary |
logical: if |
use_icons |
logical: add icons for ace/error/block kill?. Note that timeout icons are always added |
icons |
data.frame: a data.frame as returned by |
home_colour |
string: colour for home team |
visiting_colour |
string: colour for visiting team |
low_colour , mid_colour , high_colour
|
string: colours for low, mid, and high performance (used for |
font_size |
scalar: font size |
A ggplot object
Generate points table
vr_points(x, team, by = "player", vote = FALSE, style = "default")
vr_points(x, team, by = "player", vote = FALSE, style = "default")
x |
datavolleyplays: the |
team |
string: team name |
by |
string: "player" or "set" |
vote |
logical: if |
style |
string: see |
Generate reception table
vr_reception( x, team, by = "player", refx, style = "default", file_type = "indoor" )
vr_reception( x, team, by = "player", refx, style = "default", file_type = "indoor" )
x |
datavolleyplays: the |
team |
string: team name |
by |
string: "player" or "set" |
refx |
data.frame: see |
style |
string: see |
file_type |
string: "indoor", "perana_indoor", "beach", "perana_beach" |
Generate serve table
vr_serve(x, team, by = "player", refx, style = "default")
vr_serve(x, team, by = "player", refx, style = "default")
x |
datavolleyplays: the |
team |
string: team name |
by |
string: "player" or "set" |
refx |
data.frame: see |
style |
string: see |
Calculate vote
vr_vote(x, team)
vr_vote(x, team)
x |
datavolleyplays: the |
team |
string: team name |