ov_overlay_data: Generate data suitable for creating a court overlay plot

View source: R/overlay.R

ov_overlay_dataR Documentation

Generate data suitable for creating a court overlay plot

Description

Generate data suitable for creating a court overlay plot

Usage

ov_overlay_data(
  zones = TRUE,
  serve_zones = TRUE,
  labels = FALSE,
  space = "court",
  court_ref,
  crop = TRUE
)

Arguments

zones

logical: if TRUE, show zone lines

serve_zones

logical: if TRUE, show the serve zones behind the baselines

labels

logical: if TRUE, label the zones

space

string: if "court", the data will be in court coordinates. If "image", the data will be transformed to image coordinates via ov_transform_points

court_ref

data.frame: as returned by ov_get_court_ref. Only required if space is "image"

crop

logical: if space is "image", and crop is TRUE, the data will be cropped to the c(0, 1, 0, 1) bounding box (i.e. the limits of the image, in normalized coordinates)

Value

A list of data.frames

See Also

ov_overlay_image


openvolley/ovideo documentation built on March 19, 2024, 9:52 p.m.