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)

plotly documentation built on Feb. 13, 2020, 1:07 a.m.