block by timelyportfolio fdf434641712c484a942

paths.js + jade with R using V8 + rjade

Full Screen

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

index.html

code.R