Posts Tagged ‘ visualization ’

Separation of degrees

January 20, 2012
By
Separation of degrees

Scientific American has a short article on trends in undergraduate degrees over the past 20 years, illustrated with a great infographic by Nathan Yau. As a big fan of STEM (science, tech, engineering and math) education, I was pleased to … Continue reading →

Read more »

An R function to map your Twitter Followers

December 21, 2011
By
An R function to map your Twitter Followers

I wrote a little function to make a personalized map of who follows you or who you follow on Twitter. The idea for this function was inspired by some plots I discussed in a previous post. I also found a lot of really useful code over at flowing data he...

Read more »

Diagram for a Bernoulli process (using R)

November 10, 2011
By
Diagram for a Bernoulli process (using R)

A Bernoulli process is a sequence of Bernoulli trials (the realization of n binary random variables), taking two values (0/1, Heads/Tails, Boy/Girl, etc…). It is often used in teaching introductory probability/statistics classes about the binomial distribution. When visualizing a Bernoulli process, it is common to use a binary tree diagram in order to show the Read more...

Read more »

A New Dimension to Principal Components Analysis

October 27, 2011
By
A New Dimension to Principal Components Analysis

In general, the standard practice for correcting for population stratification in genetic studies is to use principal components analysis (PCA) to categorize samples along different ethnic axes.  Price et al. published on this in 20...

Read more »

Mapping Hotspots with R: The GAM

October 25, 2011
By
Mapping Hotspots with R: The GAM

I've been getting a lot of questions about the method used to map the hotspots in the seasonal drunk-driving risk maps.  It uses the GAM (Geographical Analysis Machine), a way of detecting spatial clusters from two data inputs: the data of interes...

Read more »

Shipping Mix

October 20, 2011
By
Shipping Mix

With a fresh pile of historical global shipping data, we came back to the flow visualizations that illustrated tangible supply lines that facilitate global trade.  This time we've isolated two types of shipping vessels, cargo and tanker, in order ...

Read more »

vectorplot in rasterVis

October 2, 2011
By
vectorplot in rasterVis

The function slopeAspect from raster provides the vector field (gradient) from a scalar field stored in a RasterLayer object. The magnitude (slope) and direction (aspect) of the vector field is usually displayed with a set of arrows (e.g. quiver in Matlab). rasterVis includes now a method, vectorplot, to calculate and display this vector field

Read more »

Create an animated clock in R with ggplot2 (and ffmpeg)

August 12, 2011
By

Because it’s Friday—and I needed to create this for a separate visualization—here is how to create an animated clock in R using ggplot2.In just about 20 lines of code! And here is the clock…I think this is a nifty way to show time elapse, rather than the windowed timelines I had used previously.

Read more »

hacking .gov shortened links

July 30, 2011
By
hacking .gov shortened links

This past Friday, the web portal to the US Federal government, USA.gov, organized hackathons across the US for programmers and data scientists to work with and analyze the data from their link-shortening service. It turns out that if you shorten a web link with bit.ly, the shortened link looks like 1.usa.gov/V6NpL (that one goes to

Read more »

Scatterplot matrices in R

July 25, 2011
By
Scatterplot matrices in R

I just discovered a handy function in R to produce a scatterplot matrix of selected variables in a dataset. The base graphics function is pairs(). Producing these plots can be helpful in exploring your data, especially using the second method below.Try...

Read more »