soccer_pitch_apron: The pitch should have an apron around it to do two things:

View source: R/features-soccer.R

soccer_pitch_apronR Documentation

The pitch should have an apron around it to do two things:

Description

  1. Replicate the spacing between the goal line/touchline and the nearest ad boards

Usage

soccer_pitch_apron(
  pitch_length = 0,
  pitch_width = 0,
  pitch_apron_touchline = 0,
  pitch_apron_goal_line = 0,
  goal_depth = 0
)

Arguments

pitch_length

The length of the pitch

pitch_width

The width of the pitch

pitch_apron_touchline

The distance beyond the outer edge of the touchline that the pitch's apron should extend

pitch_apron_goal_line

The distance beyond the outer edge of the back of the goal that the pitch's apron should extend

goal_depth

The depth to which the goal protrudes away from the back edge of the goal line

Details

  1. Allow the goal line and touchline to be more clearly visible

This makes practical sense, as there is grass outside of the in-play area of the pitch

Value

A data frame containing the bounding coordinates of the pitch's apron


sportyR documentation built on May 29, 2024, 8:33 a.m.