Closed harshkrishna17 closed 2 years ago
This isnt a change for the purpose of preference, Its an error in the code from the commit that added the new version of the function to the package
Had to shift the theme colors to the beginning of the function as they weren't being registered for the Opta plot type
Had to shift the theme colors to the beginning of the function as they weren't being registered for the Opta plot type
ooh that's why it was on top, that's my bad -- i didn't check .
and well, our tests also don't cover appearance, which is something we can do with https://github.com/r-lib/vdiffr but we can talk about that later
Its a good thing we're expanding tests. Wouldn't have found an issue if I wasn't trying to include the opta data_type
within the tests
Every other pitch plot function accepts column names as (x, y, finalX, finalY) for even statsbomb datasets, but plot_pass accepts the standard statsbomb names (location.x, location.y). This might be confusing so should be changed