This is a quick test of a new workflow for generating plots and visualizations around Major League Soccer. This data focuses upon preview data for Columbus Crew SC's game against FC Dallas on September 6, 2015
Last active
September 2, 2015 02:16
-
-
Save matt-bernhardt/551489440eb7587f9df2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Rproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read in data | |
preview <- read.csv('preview.csv') | |
# Simple plots | |
plot(preview$Cpts,pch=19,col="#ffd407",main="Points earned (by game) - Columbus Crew SC and FC Dallas",xlab="Games played",ylab="Points earned",xlim=c(1,30),ylim=c(0,45),type="s") | |
par(new=T) | |
plot(preview$Dpts,pch=19,col="red",xlim=c(1,30),ylim=c(0,45),xlab="",ylab="",type="s") | |
text("Matt Bernhardt\n@BernhardtSoccer\nMassiveReportData.com",x=31,y=0,col="gray",adj=c(1,0)) | |
par(new=F) | |
plot(preview$Cppg,pch=19,col="#ffd407",main="Points per game (by game) - Columbus Crew SC and FC Dallas",xlab="Games played",ylab="Points per game",xlim=c(1,30),ylim=c(0,3),type="o") | |
par(new=T) | |
plot(preview$Dppg,pch=19,col="red",xlim=c(1,30),ylim=c(0,3),xlab="",ylab="",type="o") | |
text("Matt Bernhardt\n@BernhardtSoccer\nMassiveReportData.com",x=31,y=0,col="gray",adj=c(1,0)) | |
par(new=F) | |
plot(preview$Chhi,pch=19,col="#ffd407",main="Playing time concentration (by game) - Columbus Crew SC and FC Dallas",xlab="Games played",ylab="Playing time concentration",xlim=c(1,30),ylim=c(0,1),type="o") | |
par(new=T) | |
plot(preview$Dhhi,pch=19,col="red",xlim=c(1,30),ylim=c(0,1),xlab="",ylab="",type="o") | |
text("Matt Bernhardt\n@BernhardtSoccer\nMassiveReportData.com",x=31,y=0,col="gray",adj=c(1,0)) | |
par(new=F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version: 1.0 | |
RestoreWorkspace: Default | |
SaveWorkspace: Default | |
AlwaysSaveHistory: Default | |
EnableCodeIndexing: Yes | |
UseSpacesForTab: Yes | |
NumSpacesForTab: 2 | |
Encoding: UTF-8 | |
RnwWeave: Sweave | |
LaTeX: pdfLaTeX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chhi | Cpts | Cppg | Dhhi | Dpts | Dppg | |
---|---|---|---|---|---|---|
0.938832772 | 0 | 0 | 0.965028058 | 3 | 3 | |
0.85962963 | 3 | 1.5 | 0.923002245 | 6 | 3 | |
0.801833594 | 3 | 1 | 0.923556553 | 9 | 3 | |
0.716766491 | 4 | 1 | 0.877147106 | 10 | 2.5 | |
0.732105051 | 5 | 1 | 0.84921898 | 10 | 2 | |
0.750548011 | 8 | 1.333333333 | 0.809912117 | 10 | 1.666666667 | |
0.758912304 | 11 | 1.571428571 | 0.795004552 | 13 | 1.857142857 | |
0.768848479 | 11 | 1.375 | 0.756973564 | 14 | 1.75 | |
0.768918695 | 14 | 1.555555556 | 0.720784107 | 17 | 1.888888889 | |
0.770456532 | 14 | 1.4 | 0.699496057 | 20 | 2 | |
0.766506787 | 15 | 1.363636364 | 0.688729156 | 21 | 1.909090909 | |
0.759236084 | 16 | 1.333333333 | 0.688200419 | 21 | 1.75 | |
0.725510041 | 16 | 1.230769231 | 0.677781728 | 21 | 1.615384615 | |
0.72129929 | 16 | 1.142857143 | 0.665343441 | 22 | 1.571428571 | |
0.731682563 | 17 | 1.133333333 | 0.653809174 | 22 | 1.466666667 | |
0.689028951 | 20 | 1.25 | 0.628348985 | 25 | 1.5625 | |
0.698527089 | 23 | 1.352941176 | 0.624361516 | 26 | 1.529411765 | |
0.707105092 | 24 | 1.333333333 | 0.624634784 | 29 | 1.611111111 | |
0.66712175 | 24 | 1.263157895 | 0.609442976 | 29 | 1.526315789 | |
0.677033334 | 27 | 1.35 | 0.609170661 | 32 | 1.6 | |
0.68252138 | 27 | 1.285714286 | 0.609616834 | 35 | 1.666666667 | |
0.679719705 | 30 | 1.363636364 | 0.612013996 | 38 | 1.727272727 | |
0.678594682 | 33 | 1.434782609 | 0.61478935 | 41 | 1.782608696 | |
0.677722829 | 34 | 1.416666667 | 0.616503274 | 41 | 1.708333333 | |
0.675768209 | 34 | 1.36 | 0.614744788 | 41 | 1.64 | |
0.672940598 | 37 | 1.423076923 | 0.610513961 | 41 | 1.576923077 | |
0.673246586 | 38 | 1.407407407 | 0.609216964 | 44 | 1.62962963 | |
0.672562939 | 41 | 1.464285714 | ||||
0.671690994 | 44 | 1.517241379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment