<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/apollo-moon-landings/"></div></div><div><a data-url="https://www.r-bloggers.com/apollo-moon-landings/" data-counturl="https://www.r-bloggers.com/apollo-moon-landings/" data-count="horizontal" data-text="Apollo Moon Landings" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.r-chart.com/2016/10/apollo-moon-landings.html"> R-Chart</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>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 <a target="_blank" rel="nofollow" href="http://www.r-chart.com/2016/10/map-of-middle-earth-map-above-was.html">here</a>).</p>
<p>A bit-o NASA data, the <a target="_blank" rel="nofollow" href="http://bwlewis.github.io/rthreejs/">R threejs library</a> and a few lines of code can be used to create an interactive map that identifies the landing locations of Apollo lunar landing missions.</p>
<div><a target="_blank" rel="nofollow" href="https://i1.wp.com/3.bp.blogspot.com/-40GVKaSh6a4/WA05ut3y2MI/AAAAAAAAA0Y/B90cEYGp7xQ4sUXJ-WdWWK-a8zG4BKSRACLcB/s1600/moon2.png?ssl=1"><img src="https://i2.wp.com/3.bp.blogspot.com/-40GVKaSh6a4/WA05ut3y2MI/AAAAAAAAA0Y/B90cEYGp7xQ4sUXJ-WdWWK-a8zG4BKSRACLcB/s400/moon2.png?resize=400%2C366&ssl=1" border="0" data-recalc-dims="1"></a></div>
<div></div>
<p>The lunar map above is better viewed using the interactive version on <a target="_blank" rel="nofollow" href="http://rpubs.com/Cas/apollo-moon-landings1">RPubs</a>.  The data was obtained from <a target="_blank" rel="nofollow" href="http://nssdc.gsfc.nasa.gov/planetary/lunar/apollo_tables.html#lunar_sites.">a NASA page</a>.  For comparison, see Google’s <a target="_blank" rel="nofollow" href="https://www.google.com/moon/">Map of Apollo mission landing locations</a>.  Additional information is included on this <a target="_blank" rel="nofollow" href="https://en.wikipedia.org/wiki/List_of_Apollo_missions#/media/File:Moon_landing_map.jpg">map on Wikipedia</a>.</p>
<p>The <a target="_blank" rel="nofollow" href="https://github.com/ezgraphs/R-Programs/blob/master/moon/moon.csv">data</a> and <a target="_blank" rel="nofollow" href="https://github.com/ezgraphs/R-Programs/blob/master/moon/moon.R">code</a> are on Github.  If you can believe it, all the R code required is as follows:</p>
<p><span><b>library(threejs)</b></span><br><span><b>moon_data = read.csv(“moon.csv”, stringsAsFactors=FALSE)</b></span><br><span><b>moon = system.file(“images/moon.jpg”, package=”threejs”)</b></span><br><span><b>globejs(img=moon, bodycolor=”#555555″, emissive=”#444444″, </b></span><br><span><b>        lightcolor=”#555555″, lat=moon_data$Latitude.N, </b></span><br><span><b>        long=moon_data$Longitude.E)</b></span></p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/apollo-moon-landings/"></div></div><div><a data-url="https://www.r-bloggers.com/apollo-moon-landings/" data-counturl="https://www.r-bloggers.com/apollo-moon-landings/" data-count="vertical" data-text="Apollo Moon Landings" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.r-chart.com/2016/10/apollo-moon-landings.html"> R-Chart</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/wcPcTJ3ufh4"></a></div>