as_widget: Convert a list to a plotly htmlwidget object

Description Usage Arguments Examples

View source: R/plotly.R

Description

Convert a list to a plotly htmlwidget object

Usage

1

Arguments

x

a plotly object.

...

other options passed onto htmlwidgets::createWidget

Examples

1
2
3
trace <- list(x = 1, y = 1)
obj <- list(data = list(trace), layout = list(title = "my plot"))
as_widget(obj)

trafficonese/plotly_mini documentation built on Sept. 14, 2019, 9:51 p.m.