Description Usage Arguments Value Examples
View source: R/shiny_courtref.R
A shiny app to define a court reference
1 2 3 4 5 6 7 8 9 10 | os_shiny_court_ref(
image_file,
video_file,
t = 60,
existing_ref = NULL,
court = "tennis",
include_net = FALSE,
launch_browser = getOption("shiny.launch.browser", interactive()),
...
)
|
image_file |
string: path to an image file (jpg) containing the court image (not required if |
video_file |
string: path to a video file from which to extract the court image (not required if |
t |
numeric: the time of the video frame to use as the court image (not required if |
existing_ref |
list: (optional) the output from a previous call to |
court |
string: the type of court, currently only "tennis" |
include_net |
logical: if |
launch_browser |
logical: if |
... |
: additional parameters (currently ignored) |
A list containing the reference information
1 2 3 | if (interactive()) {
os_shiny_court_ref(image_file = os_example_image("tennis_court"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.