Data Into Art / by Michael Johns

R is an open source statistical computing and graphics platform, where tasks are implemented through a coding language entered by the user. The flexibility of R is limited only by the collective ability of its community of users to dream up new functions and functionality; which means its potential is basically limitless. It has become the environment for researchers to carry out statistical analyses and produce publication-ready figures. 

Inspired by some cool new plots floating around the internet that mimic Joy Division's "Unknown Pleasures" 1979 album cover, I created the above image of Southeast Farallon Island using a new R package developed to better visualize changes in distributions over time. The image depicting the the change in elevation across a range on longitude for each line of latitude was produced with the packages ggplot2 and ggridges, using a dataset containing elevation information of the island at equally spaced points of lat and long. An example of using R for more than just stats and figures, creating something that could even pass for art. 

Download this .asc file and use this code to recreate the above image in R. 

Here's another way of looking at the same dataset using geom_polygon in ggplot2, where each polygon is colored by latitude. This shows the vertical relief of the island from the perspective of the waterline, looking north. The tallest peak at just over 100 meters is the top of Lighthouse Hill. The second largest at just below 75 meters is Maintop, which is separated from the main island by a very narrow channel.