214 search results for "ANIMATION"

The R-Podcast Episode 13: Interview with Yihui Xie

May 23, 2013
By

It’s an episode of firsts on the R-Podcast! In this episode recorded on location I had the honor and privilege of interviewing Yihui Xie, author of many innovative packages such as knitr and animation. Some of the topics we discussed include: Yihui’s motivation for creating knitr and some key new features How markdown plays a

Read more »

R programming challenge: Escape the zombie horde

May 20, 2013
By
R programming challenge: Escape the zombie horde

So when the world is taken over by a Zombie horde, you're going to want to figure out a way to get the human population to safety. This R script by econometrician Francis Smart won't help you do that exactly, but given a list of waypoints to navigate through zombie-infested lands to a safe house, it will tell you...

Read more »

Strategic Zombie Simulation – Animation – Jimmy’s Down

May 17, 2013
By
Strategic Zombie Simulation – Animation – Jimmy’s Down

# Escape Zombie Land!# This is a simulation an escape from a hot zombie zone.  It freezes and gives an error if you get get killed so you had best not.  To play it you attempt to navigate the zone by constructing waypoints.# Overall, it is no...

Read more »

Animations Understood

May 11, 2013
By
Animations Understood

When I first saw a graphic made from Yihui’s animation package (Xie, 2012) I was amazed at the magic and thought “I could never do that”. Passage of time… One night I found myself bored and as usual avoiding work. … Continue reading

Read more »

Spatial Critter Swarming Simulation

May 10, 2013
By
Spatial Critter Swarming Simulation

(This article was first published on Econometrics by Simulation, and kindly contributed to R-bloggers) # I am interested in how small bits of individualized instructions can create collective action.# In this simulation I will give a single instruction to each individual in the swarm.# Choose another individual who is not too close, then accelerate towards that individual.# I also...

Read more »

Bubble sort implemented in pure R

May 10, 2013
By
Bubble sort implemented in pure R

Please note that this is programming I purely did for the learning experience. The pure R bubble sort implemented in this post is veeeeery slow for two reasons: Interpreted code with lots of iteration is very slow. Bubble sort is

See more ›

Read more »

Animation, from R to LaTeX

May 3, 2013
By
Animation, from R to LaTeX

Just a short post, to share some codes used to generate animated graphs, with R. Assume that we would like to illustrate the law of large number, and the convergence of the average value from binomial sample. We can generate samples  using > n=200 > k=1000 > set.seed(1) > X=matrix(sample(0:1,size=n*k,replace=TRUE),n,k) Each row  will be a trajectory of heads and...

Read more »

Kalkalash! Pinpointing the Moments “The Simpsons” became less Cromulent

April 30, 2013
By
Kalkalash! Pinpointing the Moments “The Simpsons” became less Cromulent

Whenever somebody mentions “The Simpsons” it always stirs up feelings of nostalgia in me. The characters, uproarious gags, zingy one-liners, and edgy animation all contributed towards making, arguably, the greatest TV ever. However, it’s easy to forget that as a TV show “The Simpsons” is still ongoing—in its twenty-fourth season no less. For me, and

Read more »

The Financial Crisis on Tape Part II

April 26, 2013
By
The Financial Crisis on Tape Part II

First, I would like to welcome all of you reading this via R-Bloggers. I have been a user of this superb resource for years and I'm proud that I now have the opportunity to contribute!In The Financial Crisis on Tape Part I I demonst...

Read more »

big geo-data visualisations

April 17, 2013
By
big geo-data visualisations



Spotting international conflict is very easy with the GDELT data set, combined with ggplot and R. The simple gif above shows snapshots of Russian/Soviet activity from January 1980 and January 2000. I think it also illustrates how Russia nowadays looks more to the east and the South than during the Cold War. The trend, though...

Read more »