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

Description Usage Arguments Examples

Description

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

1

Arguments

p

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

Examples

1
2
3
4
5
p <- plot_ly(economics, x = ~date, y = ~pce)
# the unevaluated plotly object
str(p)
# the evaluated data
str(plotly_build(p)$x$data)

gvarunkumar/plotly documentation built on May 17, 2019, 9:29 a.m.