View source: R/features-soccer.R
soccer_penalty_box | R Documentation |
This draws a half-box, which will include the circular portion at the top of the box. All dimensions given should be to the outside of the features
soccer_penalty_box(
feature_radius = 0,
feature_thickness = 0,
box_length = 0,
penalty_mark_dist = 0,
goal_width = 0,
goal_post_to_box_edge = 0
)
feature_radius |
The radius of the circle at the top of the penalty box |
feature_thickness |
The thickness of the penalty box |
box_length |
The length of the penalty box (from the goal line) |
penalty_mark_dist |
The distance from the back edge of the goal line to the penalty mark |
goal_width |
The interior width of the goal |
goal_post_to_box_edge |
The distance from the interior of the goal post to the outer edge of the penalty box |
The line thickness will be uniform for all features on the pitch
A data frame containing the bounding coordinates of the penalty box
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.