Using R to Fetch and Plot Cosm Data

I have a number of sensor devices that use Cosm as a cloud based store data.  Cosm provides a fairly easy to use system for storing, viewing, and reacting to data from sensor networks (or just about any other source).  The Cosm pages provide basic graph building functions but lack the ability to do any computations, overlays, etc.  To make use of this data more effectively it can be loaded into the R Statistical Computing software package.  R is a full featured statistical package that is freely available for all major operating systems.

This post describes the process of using the RCurl package to retrieve data via the Cosm API from within R.