2028 search results for "ggplot"

Matching clustering solutions using the ‘Hungarian method’

November 19, 2012
By
Matching clustering solutions using the ‘Hungarian method’

Some time ago I stumbled upon a problem connected with the labels of a clustering. The partition an instance belongs to, is mostly labeled through an integer ranging from 1 to K, where k is the number of clusters. The task at that time was to plot a map of the results from the clustering of spatial polygons...

Read more »

Interactive Scenarios With Shiny – The Race to the F1 2012 Drivers’ Championship

November 18, 2012
By
Interactive Scenarios With Shiny – The Race to the F1 2012 Drivers’ Championship

In Paths to the F1 2012 Championship Based on How They Might Finish in the US Grand Prix I posted a quick hack to calculate the finishing positions that would determine the F1 2012 Drivers’ Championship in today’s United States Grand Prix, leaving a tease dangling around the possibility of working out what combinations would

Read more »

More sense of random effects

November 17, 2012
By
More sense of random effects

I can’t exactly remember how I arrived to Making sense of random effects, a good post in the Distributed Ecology blog (go over there and read it). Incidentally, my working theory is that I follow Scott Chamberlain (@recology_), who follows … Continue reading →

Read more »

Get the exit polls from CNN using R and Python

November 17, 2012
By

Yesterday I posted an example of plotting 2012 U.S. presidential exit poll results using ggplot2. There I took for granted that a data.frame containing all we need resides in a file called "PresExitPolls2012.Rdata". Today I want to show how I scraped t...

Read more »

The Race to the F1 2012 Drivers’ Championship – Initial Sketches

November 16, 2012
By
The Race to the F1 2012 Drivers’ Championship – Initial Sketches

In part inspired by the chart described in The electoral map sans the map, I thought I’d start mulling over a quick sketch showing the race to the 2012 Formula One Drivers’ Championship. The chart needs to show tension somehow, so in this first really quick and simple rough sketch, you really do have to

Read more »

Simulating Sudden Oak Death Dynamics

November 16, 2012
By
Simulating Sudden Oak Death Dynamics

I am working on a project with the Rizzo Lab examining the dynamics of Sudden Oak Death (SOD). I really have to write more about this, but today I’m just going to post the results of an initial exercise. Here I attempt to replicate model results from Cobb et al. (2012). The model in that paper simulates...

Read more »

Excel + Cytoscape + R = ExCytR

November 16, 2012
By
Excel + Cytoscape + R = ExCytR

My new project is coming along nicely and should be released early 2013. It builds on the structures developed in imDEV to link Excel, Cytoscape and R using RExcel,  RCytoscape, and CytoscapeRPC . This trio can be used to rapidly generate beautiful and  informative network representations of data. Here is an example of a  undirected Gaussian graphical

Read more »

Hjust and Vjust

November 16, 2012
By
Hjust and Vjust

So, when you’re setting the position of text in ggplot, you may have to use the hjust and vjust commands. Depending on your demands, and if you don’t understand what they’re doing, they might seem hard to use. I found one script that...

Read more »

Exit PEBOS – Enter exit polls

November 16, 2012
By
Exit PEBOS – Enter exit polls

PEBOS is over. Time to look at the details of the Election. The final results are not yet in, but the exit polls are there, and up for grabs. Just to get warm: here's a tiny example.Obviously Romney had an age problem. But for now I don't want to specu...

Read more »

What does R do? Bring people together, of course!

November 15, 2012
By
What does R do? Bring people together, of course!

Last night we had a great meet up of the Montreal R User Group. I got things started with a little presentation asking the question “What does R do?” (slides). I made the presentation using Montreal R User Group member Ramnath Vaidyanathan‘s Slidify package. Slidify allows you to generate rather handsome HTML5 slides directly using

Read more »