(Manually) making letters with geom_path() – fun example

August 15, 2012

(This article was first published on Matt's Stats n stuff » R, and kindly contributed to R-bloggers)

Disclaimer, maybe the title should be ‘lame example’.

Nothing overly exciting here. Just posting cause it took a little faffing about and someone else might like the idea. At my work (research institute) we (the social club committee) were organising an ‘Olympics event’ with a bunch of task for teams of 4, with a loose research theme. I thought a graphing race could work, and was trying think how it could be made a little more fun than drawing a line.

I figured I’d need to give the teams axis with the right scales on, as well as the sheet of data, so it would only be a 3-5 minute task, not a 30 minute task. So I figured I’d throw it together in the graphing package we love to hate, ggplot.


Code to produce this is here.

The idea was that they’d get the blank plots and data, draw the points, work out how to join them properly to form the letters, then guess what the letters are to reveal the word. I had em in a different order for the actual competition.

No, you can not have that 120 seconds of your life back, sorry :)

To leave a comment for the author, please follow the link and comment on his blog: Matt's Stats n stuff » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: 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.