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)

moupegnoukevin/plotly documentation built on Dec. 21, 2021, 9:07 p.m.