GithubHelp home page GithubHelp logo

ryo-n7 / soccer_ggplots Goto Github PK

View Code? Open in Web Editor NEW
165.0 13.0 25.0 206.56 MB

Soccer/football analytics blog posts & data viz from the World Cup, Premier League, Copa America, and beyond. Using ggplot2, ggsoccer, & more. (Est. June 2018) ****Please look at the README for best version of the code!****

Home Page: https://ryo-n7.github.io

License: GNU Affero General Public License v3.0

R 100.00%
rstats asian-cup ggplot2 premier-league soccer football worldcup2018 copa-america

soccer_ggplots's Introduction

Animate goals, Visualize stats, Video analyses, etc. from the World Cup, Premier League, Copa America, and beyond. (Using ggplot2, ggsoccer, and more)

Ryo Nakagawara | Twitter: @R_by_Ryo License: AGPL v3

ko-fi

NEW: J.League 2022 Mid-Season Review (June 15, 2022)

Web-scrape Soccer Data Tutorial

Video Analyses

Liverpool FC: xG Timelines, xG Shot Maps, & Match Notes/Thoughts

Shot Comparison Maps

Squad Age Profiles

Visualizing the Premier League (2019-2020)

Visualizing Event-Level Data with R!

Lionel Messi / Barcelona (using StatsBomb data):

Copa América 2019 blog post:

Asian Cup 2019 blog post:

World Cup blog posts:

rmarkdown/scripts/gists

  • Progressive Passers - Bundesliga: Gist
  • World Cup Goal Plots (static): World Cup/RMarkdown/worldcup_goal_plots.rmd
  • Animated World Cup Goals: Most up-to-date is in the blog post
  • Group Table Final Matchday: World Cup/RMarkdown/group_table_final_matchday.rmd
  • Animated Japan Uniforms: World Cup/RMarkdown/historical_kits.rmd
  • Liverpool FC Age-Utility Matrix: Gist
  • Jürgen Klopp's Managerial History with Elo Ratings: Gist
  • J.League: 各チームの平均推定市場価格 vs. 平均年齢: Gist
  • Asian Cup Top Scorers: Gist
  • Asian Cup Winners: Gist
  • J.League 2018 得点貢献度: Gist
  • Goal-Contribution Matrix (Premier League 2018-2019 Season): Gist
  • Player-Minutes Gantt Chart (Liverpool FC: 2010-2011 comparing Roy Hodgson vs. Kenny Dalglish): Gist

Visualizing the World Cup with R [Tokyo.R Presentation (July 2018)]:

More Examples:

Goalkeeper Performance & Workload

Progressive Passers: Bundesliga (2019-2020)

xG Match Summary

Manchester City players dominate the ‘expected’ stats: np-xG per 90 & xA per 90 for the Premier League (2019-2020)

Player-Minutes Gantt Chart (Liverpool FC: 2015-2016 Season comparing Brendan Rodgers vs. Jürgen Klopp)

Pass Partner Plots: Total Completed Passes Into The Box Between All Players

Expected vs. Actuals Goals for select group of attacking players competing in the Copa América

Top Scorers of the Asian Cup

First Goal of the World Cup: Yuri Gazinsky

Premier League 2018-2019 Season: Goal-Contribution Matrix

Jürgen Klopp's Managerial History

Age-Utility Matrix: Liverpool FC

Cristiano Ronaldo's hattrick vs. Spain:

J.League 2018 Season: Goal Contribution Matrix

Group D Final Matchday Table:

Offside Trap gif:

Japan uniforms gif:

soccer_ggplots's People

Contributors

ryo-n7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

soccer_ggplots's Issues

Zero-length variable name error

Hi @Ryo-N7. When I try to recreate liverpool_age_utility.rmd I got this message and no plot is show:
"Error: attempt to use zero-length variable name"
Any idea on where is the problem? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.