metrics-graphics.js for R