With the js script using code like d3.select(".bar") to build build the chart.
So is there a way to tell r2d3 to use this container for the chart? Or would I have to append the <g> elements to the standard svg container created by r2d3 in the js script?
When you are learning D3 or translating D3 examples for use with R it’s important to keep in mind that D3 examples will generally include code to load data, create an SVG or other root element, and establish a width and height for the visualization.
On the other hand with r2d3 , these variables are provided automatically so do not need to be created.
Edit / additional info you can specify an alternate container using the "container" parameter." (See here). However, it looks like that's for if you want to use a div and not an svg.