Learn R Programming

sportyR (version 2.2.3)

soccer_goal_line: Soccer Goal Line

Description

The goal line is the line that runs the full width of the pitch. The ball must completely cross the goal line to score a goal for the attacking team

Usage

soccer_goal_line(pitch_width = 0, feature_thickness = 0)

Value

A data frame containing the bounding coordinates of the goal line

Arguments

pitch_width

The width of the pitch

feature_thickness

The thickness of the goal line

Details

The line thickness will be uniform for all features on the pitch