plotly_build

0th

Percentile

'Build' (i.e., evaluate) a plotly object

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.

Usage
plotly_build(p)
Arguments
p

a ggplot object, or a plotly object, or a list.

Aliases
  • plotly_build
Examples
library(plotly) # NOT RUN { p <- plot_ly(economics, x = ~date, y = ~pce) # the unevaluated plotly object str(p) # the evaluated data str(plotly_build(p)$x$data) # }
Documentation reproduced from package plotly, version 4.5.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.