Introduction
Most people in my environment know R as the quintessential tool for statistical analysis and data visualization. There’s plenty of tutorials and discussions online about how to go about either. But one important aspect that is noticeably lacking is a discussion about R’s ability to simulate scenes from Star Wars. Today, we’ll set this straight. At the same time we’ll also explore how to incorporate a mathematical formula with a set of simple rules into R. This post is an R implementation of a formula published on the On-line Encyclopedia of Integer Sequences (OEIS, sequence A117966). Numberphile has a video from Brady Haran with Neil Sloane where they discuss the mathematics behind fun graphs, among which this one. It’s a great video, you can check it out here.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.