Red Wings Statistics 2015-2016 Season
Author: Sam Terfa
Date: 7-8-16
I have developed a web application which allows the user to visualize player statistics for the Detroit Red Wings of the National Hockey League over the entire 2015-2016 season.
The user can…
Player data is loaded from csv files and the data populates the app.
source("functions.R")
playerData <- getPlayerData()
orderedNames <- orderNames(playerData)
print(head(names(orderedNames)))
[1] "Justin Abdelkader LW" "Joakim Andersson C" "Andreas Athanasiou C"
[4] "Pavel Datsyuk C" "Danny DeKeyser D" "Jonathan Ericsson D"
Player data is displayed in graphs using the ggplot2 package.
neatGraphs(playerData, c("Pavel Datsyuk", "Henrik Zetterberg"), "Points")
This is of course fully customizable. The y-axis changes labels and the player name labels change automatically.
neatGraphs(playerData, c("Dylan Larkin", "Tomas Tatar", "Niklas Kronwall"), "Plus Minus")