An R app for visualising, interactively, soccer data across various leagues.
- Bar graph showing team's performance over time.
- Pie chart visualizing head to head statistics between any two teams.
- Detailed summary table of each team's performance both at home and away.
- Most recent 15 games between the current two teams being compared.
- Most recent 8 games for each of the two teams being compared.
- Current league table standings.
Want to try out this app online? If yes, check it out here.
You should have R, preferably version 3.4.4, installed on your machine and the following R packages:
After installing R start the terminal if on mac/linux or the command line if using windows, get this app running locally on your machine with these 3 easy steps:
- If you've git installed on your machine, clone this repo.Alternatively, if you don't have git installed just download the code and extract the files.
git clone https://github.com/ndero/soccer-data-visualisation-with-R.git
- Start the terminal, or command line if on windows, and navigate to where the file
global.Ris located and start R from there. Alternatively you can right click onglobal.Rand choose open with R.
R # to start R from the terminal or command line
- Finally, to start and automatically launch the app on your browser, run the following two commands inside the R console.
library(shiny)
runApp()
