Function: soccerPitch()
soccerPitch(
league,opts?):Scene
Defined in: packages/sporty/src/soccer/pitch.ts:31
Port of sportyR geom_soccer(): 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.
Parameters
league
"custom" | "ncaa" | string & object | "epl" | "fifa" | "mls" | "nwsl"
opts?
SurfaceOptions<SoccerParamUpdates, "plot_background" | "goal_line" | "center_circle" | "pitch_apron" | "touchline" | "corner_arc" | "halfway_line" | "penalty_box" | "goal_box" | "penalty_mark" | "center_mark" | "goal" | "offensive_half_pitch" | "defensive_half_pitch" | "corner_defensive_mark", "full" | "in_bounds_only" | "in bounds only" | "offense" | "offence" | "defense" | "defence" | "offensivehalfpitch" | "offensive_half_pitch" | "offensive half pitch" | "defensivehalfpitch" | "defensive_half_pitch" | "defensive half pitch"> = {}