iplot.list {iplots}R Documentation

Interactive plots management functions.

Description

These functions are used to manage currently open iPlots. Exactly one of the open iPlots is the current plot. Every newly created iPlot automatically becomes the current plot. Any plot specific functions, such as ilines operate on the current plot.

Please note that the functions below are provided for convenience only. It is also possible to use plot objects directly without using the plot list. Each function creating a new iPlot directly returns the plot object which can then be used to any subsequent calls to ilines, iplot.opt etc.

iplot.list returns all currently registered iPlots (even if they are hidden).

iplot.cur returns the ID of the current plot.

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

iplot.set makes the plot with the specified ID current.

iplot.off closes the plot.

Usage

iplot.list()
iplot.cur()
iplot.next(which=iplot.cur())
iplot.prev(which=iplot.cur())
iplot.set(which=iplot.next())
iplot.off(plot=iplot.cur())

Arguments

which

An integer specifying a plot number.

plot

Plot object or plot number of a plot to close.

See Also

ilines, iplot, ihist, ibar

Examples

data(iris)
attach(iris)
iplot(Sepal.Width,Petal.Width)
ibar(Species)
iplot.list()

[Package iplots version 1.1-8 Index]