Fifty fifty ball

Exploring soccer analytics and data visualization.


Ask me anything  
Visualization of last post. Very data dense. Differential is Union minus opponent.
ggplot( union.games,
    aes(x=Attempt.differential,
        y=On.target.differential,
        size=Goal.differential,
        color=H.A)) + 
geom_point() + 
stat_smooth(method=lm,
    alpha=0.25,
    aes(fill=factor(union.games$H.A))) + 
scale_color_discrete(name="",
    breaks=c("H","A"),
    labels=c("Home","Away"))+ 
scale_size_continuous(legend=FALSE) + 
scale_fill_discrete(legend=FALSE) + 
theme_bw()

Visualization of last post. Very data dense. Differential is Union minus opponent.

ggplot( union.games,
    aes(x=Attempt.differential,
        y=On.target.differential,
        size=Goal.differential,
        color=H.A)) + 
geom_point() + 
stat_smooth(method=lm,
    alpha=0.25,
    aes(fill=factor(union.games$H.A))) + 
scale_color_discrete(name="",
    breaks=c("H","A"),
    labels=c("Home","Away"))+ 
scale_size_continuous(legend=FALSE) + 
scale_fill_discrete(legend=FALSE) + 
theme_bw() 

Notes

  1. 5050ball posted this