Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Modify plot in json format and send back to R

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’.


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