Subscribe Bookmark
XanGregg

Staff

Joined:

Jun 23, 2011

XKCD Dominant Color Map in JMP

In March, I wrote about using visualizations in JMP to inspect the quality of a couple of color name data sets (Part 1 & Part 2). This week, xkcd author Randall Munroe has posted the results of his own color name survey, including some demographic information about each participant. He provides all the raw data, and I hope to try it out with JMP sometime, but for now I'll have to content myself with producing a variation of his color map image in JMP.

RGB Color Cube

Munroe shows a flattened version of an RGB cube with regions marked that are dominated by a single named color, thus mapping out the cube surfaces. Just in case you need a reminder, here is a perspective view of an RGB color cube. (It's really a 3D Scatterplot with a point for every RGB combination.)

Dominant Colors of the RGB Color Cube

Instead of labeling the dominant color regions, I recolored them with the representative color. For instance, all the points on the cube that participants identified as "green" have been given the color that best typifies green, as found by the survey.

JMP details: I was able to import the raw text files with a little text massaging. Then I merged the data for the RGB cube faces with the data for the best RGB values of popular color names. I used the script from my previous post to color the points according to the RGB columns. Scatterplot 3D did the rest.

Here's a view of those three cube faces unfolded into a flat image like the xkcd original:

Flattened View of Dominant Colors on RGB Cube Faces

Article Tags