iobj.list {iplots}R Documentation

Interactive objects (iObjects) management functions.


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. 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


iobj.list(plot = iplot.cur())
iobj.cur(plot = iplot.cur()), plot = iplot.cur())
iobj.prev(which=iobj.cur(), plot = iplot.cur())
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



An object or an integer specifying the object number.


ID of an object


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


object to compare


object to compare

See Also

ilines, iabline

[Package iplots version 1.1-7 Index]