MGoUFRVisualization

Submitted by mikegros on November 12th, 2015 at 3:57 PM

A few weeks ago I decided I wanted to play with some web scraping and RShiny and thought building a toy for the MGoCommunity to be able to look at old players would be a fun project.

I now have the points to actually post a new message and it's all up-to-date, so here it is:

https://mikegros.shinyapps.io/ufr_analysis

I've put the project up on github:

https://github.com/mikegros/ufr_analysis

for anyone to grab and improve. Until I move it to a different host, I'll need to keep the live version updated if anyone makes changes.

Things it can do:

  • Make plots of individual players pluses, minuses, and total +/- from the charts of all the UFRs since the end of 2005.
  • Look at position group totals as well in the same way as above
  • Aggregate numbers to their mean by year for cleaner viewing
  • Compare players +/- side-by-side on the same scale
  • There is a sortable table for looking at best/worst career/season/game or for looking at the raw data for any players
  • RPS/other team metrics can be viewed in the Single Player Tab, their position is "TM" in the Sortable Table if that matters
  • Top 10/Bottom 10 lists - quick look at a wall of fame/shame to get context for particularly big or rough games.
  • Automatically checks for new UFR data on viewing. Should keep it up to date as long as it's used (probably at least by me) every 4 games or so. 

 

Things to fix:

  • Pressure metric for D is missing since 2010 due to a typo in my scraping. I'll fix it at some point but this is a side project for me so timeframe is unknown
  • iOS support bug - for some reason there is a resizing issue on iOS devices. No clue why; will try to fix it later
  • Possibly change hosting do to some of the restrictions on that current host. I'll assess that based on traffic

Things to add:

  • Panel for Top 10/Bottom 10 lists - I already have the functions to do that and it's easy for anyone to check on their own with the table, but it would still be nice to have a dedicated panel to quickly look at a wall of fame/shame to get context for particularly big or rough games
  • "Similar players" tool for trying to get an idea for who is grading out similar to players past - good and bad.
  • Add ability to adjust for # of plays in a game. Would be even better to adjust for playing time per person, but that might be ambitious. 

I've started sharing a few of the plots in UFR threads in order to finally get the mgopoints to be able to post (Been a lurker since forever...). Some examples are below. The x-axis labels should be more legible on the web app:

Morgan_bounceback

Cole v Lewan

I hope the community likes it, please give feedback! Feel free to "Save Image As..." and share images at your leisure, though obviously I'd appreciate the source being mentioned.

Comments

jmblue

November 12th, 2015 at 7:10 PM ^

This is very cool and informative - definitely worth checking out.

(Also, kudos to you for earning your Mgopoints the old-fashioned way, instead of just visiting a posbang thread and getting 100 points in an hour.)

 

justingoblue

November 12th, 2015 at 10:11 PM ^

If someone has a solid, diary level contribution I think all of the mods are on board with just dumping some points into an account. To be clear this is an exception and people should post normally to acquire the ability to post, but if you're going to bring something unique to the table immediately (like this) comment in the mod sticky or get our attention on the board or tweet LSA and we'll make it happen.

EGD

November 13th, 2015 at 12:01 AM ^

I was impressed with these when you first put them out a few weeks ago and was really looking forward to seeing more. These are a great contribution, so thanks for doing this and by all means keep them coming!

Other Andrew

November 13th, 2015 at 5:02 AM ^

Fantastic stuff. One question - looking up older players brought mixed resutls. e.g. Lamarr Woodley and Leon Hall have full data for 2006. But Mike Hart has only two games showing up. Are there some gaps in the earlier data?

 

Thanks a ton for putting this together. Really good!

MGoMatt30

November 13th, 2015 at 3:18 PM ^

It's awesome to be able to sort the game / season / career numbers for each player.

Lewis looks like he will end up with double the points of anyone else for career points by the end of this year and Peppers looks like he will blow that number out of the water by the end of his!  Progress!

Unsalted

November 13th, 2015 at 7:42 PM ^

This is the coolest thing since the UFR viewer, may it RIP.

Just for fun I looked at Braden's numbers. As Brian wrote, he just isn't the same player we saw against Utah or in 2014 for that matter. Braden has transitioned from OL most likely to be replaced to pretty damn good. Looking forward to next years numbers. BTW I thought his block on the LB on Pepper's TD was outstanding, maybe worth a +2 IMO.

Thanks!!!!

tsbilly

November 13th, 2015 at 8:42 PM ^

Does anyone want to go back and analyze Woodson's entire career so it can be added to the visualizer? I want to view awesomeness in graphical format.

Chops

November 14th, 2015 at 3:42 PM ^

Grozzy, I've got my code version controlled in git and spent some time dockerizing the node app this week so hopefully I can easily deploy it to a host in the future. Plus it was an excuse to learn more about how docker works.

Perhaps we should connect on github. My github id is twebb. Let me know what your github id is and if I get the repo up there I'll give you access.

Next step is to turn the d3js rushing visualization code into a working page in the node app (currently it's just a scraper) and connect it up to the firebase data.