Modify plot in json format and send back to R

Hi,
Is there a way of modifying my plot properties by navigating the json file created from doing: explorePlot = plotly_json(plotlyObject) ?

Basically I want to be able to generate a plot using the provided R API, but then go into the json file (programmatically) and change some bits which R API doesn’t let me specify.

After that, I would like to reconstruct my R plotly graph using the ‘modified json file’.

Thanks

Hey @Yorye2013,

try using plotly_build(). This is useful for overriding defaults.

1 Like

Oh yeah, thanks a lot @bcd!
That’s exactly what I needed, working wonderfully now
Thanks