View source: R/vr_match_summary.R
vr_match_summary | R Documentation |
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()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.