282 search results for "animation"

A bit of fun with R

July 22, 2011
By
A bit of fun with R

R isn't just about serious things like model inference and prediction intervals and big analytics. Sometimes, R lets its hair down and just does weird and wonderful things because ... well just because. For example, with a package from Paulo Sonego, it can display your favourite XKCD cartoon: > install.packages("RXKCD", repos="http://R-Forge.R-project.org",type="source") > searchXKCD("support") num title 1 8 Red spiders...

Read more »

A Winking Pink Elephant

June 27, 2011
By
A Winking Pink Elephant

The title of chapter 5 in my Guerrilla Capacity Planning book is, "Evaluating Scalability Parameters," and underneath it you'll see this quote:"With four parameters I can fit an elephant. With five I can make his trunk wiggle." —John von NeumannIn that vein, Guerrilla alumnus Stephen O'C. pointed me at a recent blog post and paper (PDF)...

Read more »

How to share your plots better on the web

June 24, 2011
By
How to share your plots better on the web

R bloggers (including me) typically post plots online as portable network graphics (PNG). This is silly because plots generally work better as vector graphics. For years I’ve wanted to host scalable vector graphics (SVG) online, but none of the ima...

Read more »

A year of Chicago’s crime, in 30 seconds

June 21, 2011
By

Yesterday Brett Goldstein, the Chief Data Officer for the City of Chicago, announced on Twitter the release of Chicago’s crime data for the past year. The data is very detailed, and wonderful resource for criminologist and social scientists alike. I have been playing around with the data a bit, and have produced an animation

Read more »

Animated Plots with R

June 12, 2011
By
Animated Plots with R

Using ImageMagick it's pretty easy to make an animated gif from a set of plots. Essentially the way to do it is to save a plot for each frame of the animation and then convert them into a .gif. Here's a simple example that plots binomial density's for ...

Read more »

sab-R-metrics: GIF Movies and Pitch Flights (Guest Post)

May 31, 2011
By
sab-R-metrics: GIF Movies and Pitch Flights (Guest Post)

A couple weeks ago, I received an email from a fellow Pitch F/Xer and R-User, Josh Weinstock, asking if I was interested in a guest post here at Prince of Slides. I didn't think I was important enough to have talented guests posting at my blog; howeve...

Read more »

Schelling’s Neighborhood Model

April 30, 2011
By
Schelling’s Neighborhood Model

The New York Times has created a beautiful visualization of the Census Bureau's 2005-2009 American Community Survey data. The distribution of racial and ethnic groups in New York City is particularly fascinating:Chinatown appears in red toward the sou...

Read more »

Produce Authentic Math Formulas in R Graphics

April 30, 2011
By
Produce Authentic Math Formulas in R Graphics

I remember a few weeks ago, there was a challenge in the R-help list to make the prime symbol in R graphics. In LaTeX, we simply write $X'$ or $X^\prime$. R has a rough support for math expressions (see demo(plotmath)) and they are certainly unsatisfactory for LaTeX users. In fact we can write native LaTeX

Read more »

A Tiny Model of Evolution

April 25, 2011
By
A Tiny Model of Evolution

I've always wanted to write a(n overly) simple model of evolution. The assumptions are minimalistic: only one species, for which each individual's genotype is represented as a one-dimensional real number, e.g. 7.4. Now, the fun stuff: I define a fu...

Read more »

Of Height and Speed in Tennis, or Fuzziness and Techiness in College

April 24, 2011
By
Of Height and Speed in Tennis, or Fuzziness and Techiness in College

I thought of this after reading this post and perhaps also this one, one the Cheap Talk blog. Here's the puzzle: in general, being tall does not make you slow; but among professional tennis players, the tall athletes do tend to be relativel...

Read more »