iobj.listR Documentation

Interactive objects (iObjects) management functions.

Description

These functions are used to manage iObjects of an iPlot. Exactly one of the iObjects is the current one (for each iPlot). Every newly created iObject automatically becomes current.

Please note that both iPlots and iObjects can be also used directly - each function creating an iObject or iPlot returns the newly created object which can be used in calls to functions requiring plot parameter (for iPlots) or iobj.opt, iobj.rm and similar (iObjects). The object list management functions below are provided for convenience only - the direct use of objects is encouraged instead.

iobj.list returns all iObjects of the current iPlot.

iobj.cur returns the current iObject.

iobj.next and iobj.prev return the ID of the next resp. previous object in the list relative to the object specified by the argument.

iobj.set makes the object with the specified ID current.

iobj.get returns the object specified by its ID.

iobj.rm removes the object

== and != operators can be used to compare two iObjects

Usage

iobj.list(plot = iplot.cur())
iobj.cur(plot = iplot.cur())
iobj.next(which=iobj.cur(), plot = iplot.cur())
iobj.prev(which=iobj.cur(), plot = iplot.cur())
iobj.set(which=iobj.next())
iobj.get(pos, plot=iplot.cur())
iobj.rm(which=iobj.cur(), plot = iplot.cur())
## S3 method for class 'iobj'
a == b
## S3 method for class 'iobj'
a != b

Arguments

which

An object or an integer specifying the object number.

pos

ID of an object

plot

plot to operate on (either as integer ID or plot object itself).

a

object to compare

b

object to compare

See Also

ilines, iabline