Learn R Programming

sportyR (version 2.2.3)

soccer_goal: Soccer Goal

Description

The goal is located beyond each goal line. By rule, the goal posts must be the same thickness as the goal line, and the posts must rest on the front edge of the goal line

Usage

soccer_goal(feature_thickness = 0, goal_width = 0, goal_depth = 0)

Value

A data frame containing the bounding coordinates of the goal

Arguments

feature_thickness

The thickness of the goal

goal_width

The interior width of the goal

goal_depth

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

Details

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