plotly_build | R Documentation |
This generic function creates the list object sent to plotly.js
for rendering. Using this function can be useful for overriding defaults
provided by ggplotly
/plot_ly
or for debugging rendering
errors.
plotly_build(p, registerFrames = TRUE)
p |
a ggplot object, or a plotly object, or a list. |
registerFrames |
should a frame trace attribute be interpreted as frames in an animation? |
p <- plot_ly(economics, x = ~date, y = ~pce)
# the unevaluated plotly object
str(p)
# the evaluated data
str(plotly_build(p)$x$data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.