Skip to content

Instantly share code, notes, and snippets.

A visualization of some data from the 2010 U.S. Census. This was created for the University of Illinois Coursera class on data visualization.

My submission uses data on the population and area of US states, based on the 2010 census, and was obtained from the census.gov website. The data are displayed using bar charts built with d3 and the visualization includes an interactive sorting feature and a text display if you hover the mouse over a bar. Because area and volume are less effective in communicating quantitative differences than length, I was interested in the idea of using length to display area or volume. I applied the guideline of using desaturated colors for the fills of the bars. I included density as a sorting option, but didn't display it as a bar since it is computable from population and area. This is motivated by Edward Tufte's guidelines of removing redundent elements of the visualization.

@bdilday
bdilday / README.md
Last active August 29, 2015 14:23
broadDRA

This gist collects some ipython notebooks to compute baseball prospectus' CSAA and DRA using retrosheet data. The database queries are in Python and the model fitting in R.

@bdilday
bdilday / README.md
Last active August 29, 2015 14:19
rWAR (year-to-year) weighted mean geographic center

A map showing the time-evolution geographic center of the US, weighted by aggregate rWAR.

@bdilday
bdilday / README.md
Last active August 29, 2015 14:19
rWAR (aggregate) weighted mean geographic center

A map showing the time-evolution geographic center of the US, weighted by aggregate rWAR.

@bdilday
bdilday / README.md
Last active August 29, 2015 14:15
expansion of the US

Expansion of the US. Map is zoomable.

mean (red) and total (black) rWAR by birth-state.

[{"team":"Anaheim Angels","address":"2000 Gene Autry Way, Anaheim, CA. 92806","lat":33.799572,"lng":-117.889031},{"team":"Arizona Diamondbacks","address":"P.O. Box 2095, Phoenix, AZ. 85001","lat":33.452922,"lng":-112.038669},{"team":"Atlanta Braves","address":"P.O. Box 4064, Atlanta, GA. 30302","lat":33.74691,"lng":-84.391239},{"team":"Baltimore Orioles","address":"333 W. Camden Street, Baltimore, MD. 21201","lat":39.285243,"lng":-76.620103},{"team":"Boston Red Sox","address":"4 Yawkey Way, Boston, MA 02215","lat":42.346613,"lng":-71.098817},{"team":"Chicago Cubs","address":"1060 Addison Street, Chicago, IL 60616","lat":41.947201,"lng":-87.656413},{"team":"Chicago White Sox","address":"333 W. 35th Street, Chicago, IL 60616","lat":41.830883,"lng":-87.635083},{"team":"Cincinnati Reds","address":"100 Cinergy Field, Cincinnati, OH 45202","lat":39.107183,"lng":-84.507713},{"team":"Cleveland Indians","address":"2401 Ontario Street, Cleveland, OH 44115","lat":41.495149,"lng":-81.68709},{"team":"Colorado Rockies","ad