All examples By author By category About

timelyportfolio

paths.js + jade with R using V8 + rjade

paths.js + jade makes SVG in R

I think this is an even more relevant example than the simple div bar chart from earlier today (see gist). Instead of R using V8 + rjade with Javascript jade and d3.js, we'll use paths.js. paths.js provides nice APIs for working with SVG, and fortunately for us, also works cleanly with V8. We might as well use rjade while we are at it and see how we can define style attributes and the d attribute for a SVG path.

Resources

paths.js Wiki

jade Attributes Documentation