Learn R Programming

playwith (version 0.9-32)

playwith.API: The playwith API

Description

The playwith Application Programming Interface.

Arguments

Details

playwith plots (incorporating a plot, window and device) are represented by a playState object. Following is a table of the API functions that can be used to work with the plot, and to write new interactive tools. See the links to specific help pages for details. In case these are insufficient, you may work with the playState object itself.
Device management
{ These are similar to dev.set etc. [object Object],[object Object],[object Object],[object Object] }
Common user commands
{ These functions are also available as menu items. [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] }
Interaction
{ These functions allow the user to click or drag on the plot. Click or drag locations are converted into the native coordinates of whatever plot space they occurred in (but are available as device coordinates too). [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] }
Working with the display
{ [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] }
Working with the call
{ [object Object],[object Object],[object Object],[object Object],[object Object] }
Working with data
{ [object Object],[object Object],[object Object] }

See Also

playwith, playState, convertFromDevicePixels

Examples

Run this code
if (interactive()) {

demo(package = "playwith")

}

Run the code above in your browser using DataLab