Learn R Programming

nat (version 1.8.24)

pan3d: Some useful extensions / changes to rgl defaults

Description

Set up pan call back for current rgl device

Usage

pan3d(button)

Arguments

button

Integer from 1 to 3 indicating mouse button

Author

Duncan Murdoch

Details

Copied verbatim from ?rgl.setMouseCallbacks for rgl version 0.92.892 Mouse button 2 is right and button 3 is middle (accessed by meta/alt key)

Note that sometimes (parts of) objects seem to disappear after panning and zooming. The example in rgl.setMouseCallbacks from which this is copied includes a note that "this doesn't play well with rescaling"

See Also

rgl.setMouseCallbacks

Examples

Run this code
if (FALSE) {
 open3d()
 pan3d(2)
}

Run the code above in your browser using DataLab