Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Apollo Moon Landings

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:

library(threejs)
moon_data = read.csv("moon.csv", stringsAsFactors=FALSE)
moon = system.file("images/moon.jpg", package="threejs")
globejs(img=moon, bodycolor="#555555", emissive="#444444", 
        lightcolor="#555555", lat=moon_data$Latitude.N, 
        long=moon_data$Longitude.E)





This post first appeared on R-Chart, please read the originial post: here

Share the post

Apollo Moon Landings

×

Subscribe to R-chart

Get updates delivered right to your inbox!

Thank you for your subscription

×