Skip to contents

`plot_js()` is the older name for the interactive HTML widget; new code should call [surfwidget()] directly.

Usage

plot_js(x, width = NULL, height = NULL, ...)

# S4 method for class 'SurfaceGeometry'
plot_js(x, width = NULL, height = NULL, ...)

Arguments

x

Surface object to plot

width

The width of the widget (optional)

height

The height of the widget (optional)

...

Additional arguments passed to the plotting function

Value

An HTMLWidget object

Examples

# \donttest{
geom <- example_surface_geometry()
widget <- plot_js(geom)
# }