as_widget: Convert a list to a plotly htmlwidget object

View source: R/plotly.R

as_widgetR Documentation

Convert a list to a plotly htmlwidget object

Description

Convert a list to a plotly htmlwidget object

Usage

as_widget(x, ...)

Arguments

x

a plotly object.

...

other options passed onto htmlwidgets::createWidget

Examples



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


plotly documentation built on May 29, 2024, 2:23 a.m.