Tag Archives: r

R and ggPlot

Plotting the Afghan war, via Open Source Tools Turn WikiLeaks Into Illustrated Afghan Meltdown Updated | Danger Room | Wired.com:

It’s one thing to read about individual Taliban attacks in WikiLeaks’ trove of war logs. It’s something quite different to see the bombings and the shootings mount, and watch the insurgency metastasize.

Even more Afghan visualizations thanks to WikiLeaks are available  at Visualizing Data.

Leave a comment

Filed under Analysis Ideas, mapping, visualization

Make a Treemap with R!

Tree  Maps are much more tree-like than Tree Diagrams. Here is another great “R” project from FlowingData blog.

Treemap uses proportional boxes to show size

Back in 1990, Ben Shneiderman, of the University of Maryland, wanted to visualize what was going on in his always-full hard drive. He wanted to know what was taking up so much space. Given the hierarchical structure of directories and files, he first tried a tree diagram. It got too big too fast to be useful though. Too many nodes. Too many branches.

The treemap was his solution. It’s an area-based visualization where the size of each rectangle represents a metric since made popular by Martin Wattenberg’s Map of the Market and Marcos Weskamp’s newsmap.

See SmartMoney’s live-updating Treemap of the stock market. (Health care and energy are big movers right now.)

via An Easy Way to Make a Treemap | FlowingData.

Leave a comment

Filed under Analysis Ideas, How-To

How to Make a Heatmap – a Quick and Easy Solution | FlowingData

Do you have columns of data? Do you have rows of labels? Do you like heat?

You can make a heat map for quick visual analysis of tables! Using R, a free, open source interactive statistics package available on Windows, Linux, and Mac OS, you can load your .csv data, define some colors, et voila! You find out where teh hotz is.

Sample heat map

What is a heat map, in this implementation? The source article describes it as “a table that has colors in place of numbers. Colors correspond to the level of the measurement. Each column can be a different metric like above, or it can be all the same like this one. It’s useful for finding highs and lows and sometimes, patterns.”

Intelligence analysts and RCMP officers may see a use for this in SLEIPNIR.

via How to Make a Heatmap – a Quick and Easy Solution | FlowingData.

Leave a comment

Filed under Uncategorized