Modifying the output of Plotly via the R API

Is there a way to find the d3js code created by plotly and modify it directly in the code?

I’ve been using plotly to generate plots in Rstudio. I use knitr to create an HTML file that displays the plotly output. I’d like to explore adding customized functionality to these visualizations, but I don’t know where to look for the code the is created by plotly. I’ve looked at the contents of the HTML file, but I didn’t see any d3js code in this file.

I don’t think I fully understand, but I’ll try to add some additional detail. plotly is bundled with d3. You can get to it by var d3 = Plotly.d3, or by using Plotly.d3 directly.