elementId2Prefix: Use widget with old-style controls.

Description Usage Arguments Value Author(s)

View source: R/rglcontroller.R

Description

The rglwidget control is designed to work in the htmlwidgets framework. Older rgl web pages that used writeWebGL or knitr used a different method of linking the controls to the scene. This is a partial bridge between the two systems. You should adopt the new system, not use this function.

Usage

1
elementId2Prefix(elementId, prefix = elementId)

Arguments

elementId

An element identifier from a rglwidget call.

prefix

The prefix to use in the old-style control.

Value

This function generates Javascript code, so it should be used in an results = "asis" block in a knitr document.

Author(s)

Duncan Murdoch


rgl documentation built on Feb. 1, 2021, 3:01 a.m.