Welcome to the second in a series of posts of maps-to-places-I-am-unlikely-to-visit generated by R (the previous post is here).
A bit-o NASA data, the R threejs library and a few lines of code can be used to create an interactive map that identifies the landing locations of Apollo lunar landing missions.
The lunar map above is better viewed using the interactive version on RPubs. The data was obtained from a NASA page. For comparison, see Google’s Map of Apollo mission landing locations. Additional information is included on this map on Wikipedia.
The data and code are on Github. If you can believe it, all the R code required is as follows:
moon_data = read.csv(“moon.csv”, stringsAsFactors=FALSE)
moon = system.file(“images/moon.jpg”, package=”threejs”)
globejs(img=moon, bodycolor=”#555555″, emissive=”#444444″,