Skip to main content

Function: tennisCourt()

tennisCourt(league, opts?): Scene

Defined in: packages/sporty/src/tennis/court.ts:57

Port of sportyR geom_tennis(): one PolygonFeature per ggplot layer R adds, in R's layer order (23 polygons). Documented divergences: an unknown displayRange throws (R falls back to "full"); the correctly spelled receive(-| )half keys are accepted (R only has the receivice* typos); units also converts the anchors and display limits.

Parameters​

league​

"custom" | "ncaa" | string & object | "atp" | "ita" | "itf" | "usta" | "wta"

opts?​

SurfaceOptions<TennisParamUpdates, "plot_background" | "court_apron" | "net" | "center_mark" | "doubles_alley" | "backcourt" | "baseline" | "serviceline" | "center_serviceline" | "singles_sideline" | "doubles_sideline" | "ad_court" | "deuce_court", "full" | "in_bounds_only" | "in bounds only" | "serve" | "serving" | "servicehalf" | "service_half" | "service half" | "servinghalf" | "serving_half" | "serving half" | "receive" | "receiving" | "receivicehalf" | "receivice_half" | "receivice half" | "receivinghalf" | "receiving_half" | "receiving half" | "receivehalf" | "receive_half" | "receive half"> = {}

Returns​

Scene