294 search results for "animation"

The Traveling Salesman with Simulated Annealing, R, and Shiny

September 17, 2014
By
The Traveling Salesman with Simulated Annealing, R, and Shiny

I built an interactive Shiny application that uses simulated annealing to solve the famous traveling salesman problem. You can play around with it to create and solve your own tours at the bottom of this post. Here's an animation of the annealing process finding the shortest path through the 48 state capitals of the contiguous...

Read more »

3D Sine Wave

September 16, 2014
By
3D Sine Wave

Had a headache last night, so decided to take things easy and just read posts Google+. Then I came across this post which seems interesting so I thought I would play around before I head to bed. ...

Read more »

√(x²−1)(x²−k²).      x,k∈ℂ (actually just going over the unit…

September 15, 2014
By
√(x²−1)(x²−k²).      x,k∈ℂ
(actually just going over the unit…

√(x²−1)(x²−k²), k∈ℂ x²√(x²−1)(x²−k²).      x,k∈ℂ (actually just going over the unit circle, not all of ℂ) edit: hey, are these showing up as moving gif’s for you? code: require(animation) source(wegert.R) #where I define "plat" and "Z", standard for...

Read more »

ASDAR book Review

September 8, 2014
By
ASDAR book Review

I was recently invited to write a book review for Applied Spatial Analysis and Policy (ASAP). The book, I conclude, “is the authoritative resource on R’s spatial capabilities” and should be of interest to many R users. Below is a preprint of the full review, now published on ASAP’s website. As a geographer and heavy R user,...

Read more »

Because it’s Friday: A 3-minute movie in 4095 bytes

August 22, 2014
By

This entire movie — images, music, everything — is generated from a Windows PC executable of just 4,095 bytes. That's not a typo: we're not talking bytes not megabytes or gigabytes here. Less than 4kb total creates this entire scene. For comparison, a medium-quality video file of this exact same scene in AVI format comes in at over 64Mb:...

Read more »

A Few Notes on UseR! 2014

July 25, 2014
By
A Few Notes on UseR! 2014

It has been a month since the UseR! 2014 conference, and I'm probably the last one who writes about it. UseR! is my favorite conference because it is technical and not too big. I have completely lost interest in big and broad conferences like JSM (to me, it has become Joint Sightseeing Meetings). Karl has written two blog posts...

Read more »

Flood fill a region of an active device in R

July 23, 2014
By
Flood fill a region of an active device in R

The following is a function to "flood fill" a region on the active plotting device. Once called, the user will be asked to click on the desired target region. The flood fill algorithm then searches neighbors in 4 directions of the target cell (down, le...

Read more »

beepr (former pingr) is on CRAN. It’s easier than ever to make R go beep!

June 30, 2014
By
beepr (former pingr) is on CRAN. It’s easier than ever to make R go beep!

Even though I said it would never happen, my silly package with the sole purpose of playing notification sounds is now on CRAN. Big thanks to the CRAN maintainers for their patience! For instant gratification run the following in R to install beepr and make R produce a notification sound: install.packages("beepr") library(beepr) beep() This package was previously called pingr and included...

Read more »

Animated Choropleths in R

April 9, 2014
By
Animated Choropleths in R

Ari Lamstein has updated his choroplethr package with a new capability for creating animated data maps. I can't embed the animated version here, but click the image below to see an animation of US counties by average household income, from the richest to the poorest by percentile. (The code behind the animation is available on github.) The chloroplethr package...

Read more »

Making inferences about unusual population quantities.

April 4, 2014
By
Making inferences about unusual population quantities.

This post builds on my last: Alternatives to model diagnostics for statistical inference?, where I had claimed that we could make quality inferences about the best linear approximation to a quadratic relationship. The R code below implements such a scenario, to establish a framework for discussion. I have inserted comments to augment the code. set.seed(42)

Read more »