Image

Animations in R

I’ve been playing with animations in R.  Here’s an example:
animation

Here’s how I did this:

library(animation)
saveGIF({
  for (i in seq(0,360,5)){
    persp(volcano, theta=i, phi=30, expand=0.5, col="lightblue")
  }
})

I might use a visualization like this to show economic output by MSAs.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s