-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot half pitch for shots. #10
Comments
Ah yes, this is correct. I will update the README to reflect this.
This is weird. From what I can tell, any layers created with Thanks for reporting this |
I've submitted an issue to ggplot2 here. The workaround for
In the meantime, the easiest way to work around this is probably to alter your input data (which is a bit grim, I know). goals %>%
ggplot(aes(x = x, y = 100 - y), ...) +
# ... |
When you use half size to plot shots , it should be required an scale y reverse... however since it is annotate_pitch previous scale this is not possible,
if you coord_flip x coordinate is ok but y is flipped
my trial
ggplot(goals) +
annotate_pitch(colour = "gray70", fill = "gray90") +
geom_point(aes(x = x, y = y,colour=team,shape=body.part), size = 4) +
theme_pitch()+
coord_flip()+
scale_y_reverse()+
ggtitle("Shotmap", "EPL ")+theme_classic()
The text was updated successfully, but these errors were encountered: