rp.grid {rpanel}R Documentation

Define a subsidiary grid within an rpanel

Description

A subsidiary grid is defined at a specified row and column location within an rpanel.

Usage

rp.grid(panel, name, pos, bg = NULL, parent = window, ...)

Arguments

panel

the panel in which the slider appears. This may be passed as a panelname string or the panel object itself.

name

a string defining the name of the grid.

pos

a list containing components which define various features of the grid; see the help information on "grid" mode in rp.pos, for more information. These components can also be specified as additional arguments in ....

bg

a character variable defining a background colour. (This is not the same as colours in R, but simple colours are available.)

parent

this specifies the widget inside which the grid should appear. In the current version of rpanel, it should not normally be used.

...

any other arguments will be assumed to refer to components of pos; see the help information on "grid" mode in rp.pos for details.

Details

The role of this function is to specify a subsidiary grid at a particular row and column position of the parent grid. Nesting of grids within grids is permitted. See the help information on "grid" mode in rp.pos for a description of the settings of the pos argument.

Value

If the parameter panel is the panelname string the same string is returned. If the panel object is used the altered panel is assigned to both the calling level and panel's environment level.

References

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

Examples

if (interactive()) {
   rp.pos("grid")
   }

[Package rpanel version 1.0-6 Index]