Example code from the O'reilly webinar "From Scattered to Scatterplot in 2 hrs" with my notes in the comments