This script will connect R with Google Analytics and construct a heatmap of sessions by day and hour for a give date range.
- RGoogleAnalytics - Connects with Google Analytics
- gplots - Constructs a heatmap
For a detailed, step by step tutorial visit blogpost at Analytics Pros.