abhiamishra / ggshakeR

An analysis and visualization R package that works with publicly available soccer data
https://abhiamishra.github.io/ggshakeR/
MIT License
113 stars 14 forks source link

Plot_trendline error #86

Closed Zakgas closed 2 years ago

Zakgas commented 2 years ago

Hi,

I was running your code for the Trendline plot, but I got the following error:

Error in plot_trendline(data = df, team = "Manchester United", colour_xg = "#08519c", : unused arguments (colour_xg = "#08519c", colour_xga = "#cb181d", roll_avg = 2)

Any help would be much appreciated!

Thanks in advance.

Zakariah

harshkrishna17 commented 2 years ago

This is as we have changed the parameter names in quite of our functions in version 0.2.0. Check out the Guide here. The correct usage of the function would be

plot_trendline(data = df, team = "Manchester United", color_xg = "#08519c", color_xga = "#cb181d", rolling_average = 2)