Wikileaks Attack Data by Year and Type Projected on Afghanistan Regional Map

August 7, 2010
By
Wikileaks Attack Data by Year and Type Projected on Afghanistan Regional Map

Below is a visualization of the Wikileaks data produced in collaboration with Michael Dewar. This plot shows attacks in the data set by year and type, projected onto a map of Afghanistan with district boundaries. This visualization is certainly not perfect, i.e., some colors are difficult to discern, but it does provide added insight to the

Read more »

Creating a Presentation with LaTeX Beamer – Including Images from Graphics Files

August 7, 2010
By
Creating a Presentation with LaTeX Beamer – Including Images from Graphics Files

It will often be more efficient to generate graphics in an external software package and then include these files in a LaTeX beamer presentation. The standard LaTeX approach to including graphics can be utilised to perform this task. Fast Tube by Casper The graphicx is useful for including graphics files in a presentation and this package has

Read more »

Julian Besag 1945-2010

August 7, 2010
By
Julian Besag 1945-2010

I have just learned that Julian Besag passed away last morning in Bristol after being admitted to the hospital two weeks ago. He was a leading figure of our field, a fiercely independent thinker, a brilliant statistician, and undoubtedly the clearest pretendent to having fathered MCMC. His influence on the field of spatial statistics will

Read more »

RInside release 0.2.3

August 6, 2010
By

A new 0.2.3 release of RInside is now on CRAN. RInside is a set of convenience classes which facilitate embedding of R inside of C++ applications and programs. RInside works particularly well with Rcpp and now depends on it. This is the first release ...

Read more »

RInside release 0.2.3

August 6, 2010
By

A new 0.2.3 release of RInside is now on CRAN. RInside is a set of convenience classes which facilitate embedding of R inside of C++ applications and programs. RInside works particularly well with Rcpp and now depends on it. This is the first re...

Read more »

Because it’s Friday: Foxes on a Trampoline

August 6, 2010
By

They're foxes. They're on a trampoline. And they're jumping. I don't think there's much more for me to add:

Read more »

Finding out (fast) the classes of data.frame vectors

August 6, 2010
By
Finding out (fast) the classes of data.frame vectors

Sometimes it’s useful to write down the various classes of vectors inside your data.frame objects for documentation and other people to use it. I’ve searched for a quick way to find out all the classes of vectors inside a data.frame. Since I’ve found no reference for such a function/process I made one up. I’d like [&hellip

Read more »

How to animate Google Earth with R

August 6, 2010
By
How to animate Google Earth with R

We've looked before at how you can annotate geographical maps using R, but what if you want to overlay data onto a globe of the Earth, using Google Earth? The RKML package for R (from the OmegaHat project) allows you to do just that, by providing a high-level interface from R to generate KML files, which in turn are...

Read more »

Twenty rules for good graphics

August 6, 2010
By
Twenty rules for good graphics

One of the things I repeatedly include in referee reports, and in my responses to authors who have submitted papers to the International Journal of Forecasting, are comments designed to include the quality of the graphics. Recently someone asked on stats.stackexchange.com about best practices for producing plots. So I thought it might be helpful to

Read more »

Combinadics in R

August 5, 2010
By
Combinadics in R

A question on stats.stackexchange.com reminded me of some code I wrote earlier this summer. The code provides a correspondence between the natural numbers 1 to (N choose K) and all the unique K sized combinations one could draw from N items. This relationship is know as the combinadic of an integer (and my code is pased on...

Read more »

RcppArmadillo 0.2.5

August 5, 2010
By

Hot on the heels of RcppArmadillo release 0.2.4 a few days ago comes a new release 0.2.5 which is now on CRAN. RcppArmadillo makes it easy to write highly efficient and highly readable C++ code for linear algebra (based on Armadillo) in R extensions (u...

Read more »

RcppArmadillo 0.2.5

August 5, 2010
By

Hot on the heels of RcppArmadillo release 0.2.4 a few days ago comes a new release 0.2.5 which is now on CRAN. RcppArmadillo makes it easy to write highly efficient and highly readable C++ code for linear algebra (based on Armadillo) in R extensions (...

Read more »

R and Google Earth ~ comparing tuna tracks vs. Gulf of Mexico oil spill extent

August 5, 2010
By
R and Google Earth ~ comparing tuna tracks vs. Gulf of Mexico oil spill extent

There is a lot of interest in how the Gulf of Mexico oil gusher will affect the ecosystem and its marine species. One such species is the Western Atlantic bluefin tuna that holds the Gulf of Mexico as one of its major spawning grounds. Recent tag data show that the location of the gusher is

Read more »

Where have all the Hacker News old-timers gone?

August 5, 2010
By
Where have all the Hacker News old-timers gone?

Nostalgia ain't what it used to be. As slashdot slowly loses its relevance and digg heads for a more general audience to head off competition from Twitter, loyal readers of uber-technical news aggregator Hacker News wonder if it's heading the same way. Seems like the long-standing users aren't posting links to deep, interesting articles anymore, and are instead being...

Read more »

Internal Migration Estimation in England and Wales

August 5, 2010
By
Internal Migration Estimation in England and Wales

During my MS.c. I worked on methods for combining internal migration data in England and Wales. Migration data is often represented in square tables of origin-destination flows. These are of particular interest to analysing migration patterns when they are disaggregated … Continue reading →

Read more »

New R User Group in Portland, OR

August 5, 2010
By

There's another new R user group on the US West Coast, this time in Portland, Oregon. The Portland R User Group will hold their first meeting at the Lucky Labrador Brew Pub on Tuesday, August 17. If you're in the Portland/Vancouver area, come along for beeRs and conversation with other useRs in your area. Incidentally, there are so many...

Read more »

Are MLB Games Getting Longer?

August 5, 2010
By
Are MLB Games Getting Longer?

On July 29, 2010, I had a flight from Denver to Cincinnati.  About an hour before boarding, I went to ESPN’s website and found a new article by Bill Simmons, a.k.a The Sports Guy (@sportsguy33 on Twitter).  The basic premise of this article is that a core group of fans is losing interest in Red

Read more »

R helps reproducible research

August 5, 2010
By

While reading a paper on mutualistic networks in press at Ecology, by Jimena Dorado et al., I found the following sentence in the Materials & methods section: Correlation analyses were done using the cor.test function in the basepackage of R (…)Read the rest of this entry »

Read more »

Big data for R

August 5, 2010
By
Big data for R

Revolutions Analytics recently announced their "big data" solution for R. This is great news and a lovely piece of work by the team at Revolutions. However, if you want to replicate their analysis in standard R, then you can absolutely do so and we show you how.

Read more »

Big data for R

August 5, 2010
By
Big data for R

Revolutions Analytics recently announced their "big data" solution for R. This is great news and a lovely piece of work by the team at Revolutions. However, if you want to replicate their analysis in standard R, then you can absolutely do so and we show you how.

Read more »

Plotting texts as graphs with R and igraph

August 4, 2010
By
Plotting texts as graphs with R and igraph

I’ve plotted several word association graphs for this New York Times article (1st paragraph) using R and the igraph library. #1, random method #2, circle method #3, sphere method #4, spring method #5, fruchterman-reingold method # 6, kamada-kawai method #7, graphopt method The red vertices mark cliques. Here’s the (rough) R code for plotting such

Read more »

Hacking the CISEN homicide data

August 4, 2010
By
Hacking the CISEN homicide data

The director of the CISEN, the Mexican agency in charge of generating intelligence to safeguard Mexico's security, said in a presentation yesterday that the number of homicides linked to the drug war was a little over 28,000 since the start of the Calderon administration. Guillermo Valdés didn't provide the raw data so I used Engauge to digitize...

Read more »

Hacking the CISEN homicide data

August 4, 2010
By
Hacking the CISEN homicide data

The director of the CISEN, the Mexican agency in charge of generating intelligence to safeguard Mexico's security, said in a presentation yesterday that the number of homicides linked to the drug war was a little over 28,000 since the start of the Calderon administration. Guillermo Valdés didn't provide the raw data so I used Engauge to digitize...

Read more »

Recent arXiv postings

August 4, 2010
By
Recent arXiv postings

With too little time, too many things to do on my plate, here are some recent arXiv postings I won’t have time to comment: Adaptive Monte Carlo on multivariate binary sampling spaces. (arXiv:1008.0055v1) Mixture Decomposition of Distributions using a Decomposition of the Sample Space. (arXiv:1008.0204v1) Bayesian Model Selection for Beta Autoregressive Processes. (arXiv:1008.0121v1) Reference priors

Read more »

Integrating R with Geany

August 4, 2010
By

According to landroni, R can also be easily integrated with Geany:Download 0.19 (non-optional), then you need to set send_selection_unsafe=true in geany.conf and assign "Send selection to terminal" to a ctrl+r keybinding or similar. As long as you...

Read more »

Integrating R with Geany

August 4, 2010
By

According to landroni, R can also be easily integrated with Geany:Download 0.19 (non-optional), then you need to set send_selection_unsafe=true in geany.conf and assign "Send selection to terminal" to a ctrl+r keybinding or similar. As long as you...

Read more »

ggplot2 gui: Major feature set complete

August 4, 2010
By
ggplot2 gui: Major feature set complete

(Written by Ian Fellows) There has been quite a bit of progress on the ggplot2 graphical user interface since the last post. All of the major features have been implemented, and are outlined in the vlog links below. What remains is to fix bugs, improve interface elements, and listen to feedback from users (that’s you).

Read more »

U.S. Unemployment Data: Animated Choropleth Maps

August 4, 2010
By
U.S. Unemployment Data: Animated Choropleth Maps

I was curious about creating maps with ggplot2 - and was happy to find that great minds have long since tackled this topic.  Folks who are interested in how to learn about R (and ggplot2) might be interested in the process.  (There should be ...

Read more »

use R! 2010 conference — reflections

August 4, 2010
By

From July 20-23, this year's use R! conference took place in Gaithersburg near Washington. I attended the conference as part of my holidays in the U.S. and had a good time there. I met some people, even though that is not the easiest thing for me to do, and I got some inspirations and ideas I outline below:Stat appsOne...

Read more »