Skip to main content

Function: volleyballCourt()

volleyballCourt(league, opts?): Scene

Defined in: packages/sporty/src/volleyball/court.ts:36

Port of sportyR geom_volleyball(): one PolygonFeature per ggplot layer R adds, in R's layer order. Documented divergences: an unknown displayRange throws (R falls back to "full"); units also converts the anchors and display limits. Preserved R quirk: the substitution-zone loop repeats substitution_zone_rep_pattern times (0 gives none).

Parameters​

league​

"custom" | "ncaa" | string & object | "fivb" | "usa volleyball"

opts?​

SurfaceOptions<VolleyballParamUpdates, "plot_background" | "court_apron" | "sideline" | "end_line" | "center_line" | "free_zone" | "front_zone" | "service_zone_mark" | "attack_line" | "defensive_backcourt" | "offensive_backcourt" | "substitution_zone", "full" | "in_bounds_only" | "in bounds only" | "offense" | "offence" | "offensivehalfcourt" | "offensive_half_court" | "offensive half court" | "defense" | "defence" | "defensivehalfcourt" | "defensive_half_court" | "defensive half court"> = {}

Returns​

Scene