Data Visualization of FIFA 15's Player Ratings with R and Java
- Using [fifaguide's Developer API] (http://tools.fifaguide.com/develop.php), JSON files are retrieved and parsed with Java's JSON API in a separate Java file (see
src
forratingRetriever
). - The data (about 19,000 ratings) is then written onto multiple
.csv
files - With ggplot2 and R's built in capabilities, this data is then visualized into 7 distinct histograms, density plots, and dotplots.
- [ggplot2] (http://ggplot2.org/) for the complex graphs
- [fifaguide's Developer API] (http://tools.fifaguide.com/develop.php) for retrieving ratings
- [Google's Java JSON library] (https://github.com/google/gson) for parsing the JSON data
- Java for the data parsing and R for data visualization
- In your R console, use the
source()
function to run each of the R scripts - Make sure that the files are in your working directory using
dir()
- If
source()
does not work, then run each script line by line, making surelibrary(ggplot2)
is ran
##ggplot2 Graphs:
### Histogram of Full Dataset ### Dotplot of Partial Dataset ### FreqPoly with Area fill ## R generated Graphs ### Density of Half Dataset ### Polygon Density of Half Dataset ### Histogram of Half Dataset