metricsgraphics.js for R