Skip to content

Instantly share code, notes, and snippets.

View amirebrahimi's full-sized avatar

Amir Ebrahimi amirebrahimi

View GitHub Profile
@amirebrahimi
amirebrahimi / README.md
Last active November 12, 2015 06:39
Hey, batter batter...swing!

Summary

This data visualization shows the relationship of home runs to batting average for a small sample of baseball players from the annals of MLB. What's shown here is that all players are not equal in terms of performance, and moreso that a player that has a batting average of 0.300 is not simply 1.5x better than a player with a batting average of 0.200.

Design

I chose a scatterplot because it is an effective way to show a bivariate relationship for a sizable amount of data. Home runs and batting averages are visually encoded as positional data along the Y and X axis. I thought a "martini