sportsdataverse / sportyR

R package for drawing regulation playing surfaces for several sports
https://sportyR.sportsdataverse.org
GNU General Public License v3.0
103 stars 7 forks source link

Football offensive and defensive half fields do not align properly #20

Closed rossdrucker closed 1 year ago

rossdrucker commented 1 year ago

First noticed with the following code:

sportyR::geom_football(
    "NFL",
    color_updates = list(
        "offensive_half" = "#567d4666",
        "defensive_half" = "#567d4666",
        "sideline" = "#ffffff",
        "end_line" = "#ffffff",
        "goal_line" = "#ffffffe6",
        "minor_yard_line" = "#ffffffe6",
        "major_yard_line" = "#ffffffe6",
        "try_mark" = "#ffffffe6",
        "directional_arrow" = "#ffffffe6",
        "yardage_marker" = "#ffffffe6"
    )
)

Yields this plot:

image

Should be traceable to an issue with x_anchor when plotting the offensive and defensive half-fields, but also should check the underlying data frame of a half of a football field