Explore a comet with R’s "rgl" package

December 24, 2014

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

Last month, the Philae lander touched down on comet ChuryumovGerasimenko. In the process, the lander and the orbiting Rosetta probe captured detailed data on the geometry of the comet, which the ESA published as a shape file. You can use the rgl package to visualize and explore such shape files quite simply as follows:

Then you can manipulate the comet in 3-D with a mouse in an X11 window. (Note, if you’re on a Mac you will need to install XQuartz.) Also try running play3d(spin3d()) to see it rotate automatically.


Package maintainer Duncan Murdoch has made things even easier if you have the very latest version of rgl (currently only available in source form), where you can simply run:


Thanks to Duncan for this very cool example!

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)