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 ifspace
is "image"- crop
logical: if
space
is "image", andcrop
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)