Description Usage Format Details
The coordinate system used to generate pitch markings
It can be customised by supplying a pitch specification to the dimensions
argument of rugby_pitch
.
ggrugby provide the pitch specification of World Rugby by default. (https://laws.worldrugby.org/?law=1&language=EN) However, user-defined specifications can also be used.
1 |
An object of class list
of length 6.
A "pitch specification" is simply a list of dimensions that define a coordinate system. The required dimensions are:
"length"The length of the pitch from one goal line to the other (x axis)
"width"The width of the pitch from one touchline to the other (y axis)
"dead_line"The distance from the dead-ball line to the goal line
"goal_width"The distance from one goal post to the other
"origin_x"The minimum x coordinate of the pitch
"origin_y"The minimum y coordinate of the pitch
The following pitch dimensions are provided
"pitch_worldrugby"For World Rugby data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.