SVG + a little extra (d3.js) in RStudio Browser | No Pipes This Time

I’m guessing here, but yesterday’s post Responsive SVG in Your RStudio Browser might have inspired some “but,…)”s, “yes plus I need”s, “what the %>>% with the pipe”s, etc. I’ll attempt to address a couple of these in this quick post. First, if you don’t like pipes, here is the non-piped version of the code. I also made one change, which assumes that you want the SVG to fill the