playwith (version 0.9-54)

parameterControlTool: Create playwith tools for controlling parameter values

Description

Part of the playwith Application Programming Interface.

Usage

## Note: this is only to be called inside a tool constructor function. parameterControlTool(playState, name, value, label = name, handler = NULL, horizontal = TRUE)

Arguments

playState
a playState object, as passed in to the constructor function.
name
the parameter name as it appears in the plot call.
value
the possible or starting values for the parameter. Can be a single or vector value, of integer, numeric, character or logical. See playwith for details.
label
label for the widget.
handler
a function.
horizontal
FALSE to make a tool for a vertical toolbar.

Value

a gtkToolButton.

Details

Note: this is only to be called inside a tool constructor function. It is not intended to be called directly.

See Also

playwith

Examples

Run this code
## none yet

Run the code above in your browser using DataCamp Workspace