rp.panel {rpanel}R Documentation

Returns a panel

Description

Returns the most recently created panel or a named (by passing the name as a string parameter) panel.

Usage

rp.panel <- (panelname = rp.panelname(new = FALSE))

Arguments

panelname optional string parameter. If set the panel of that name is returned, if not set the most recently created panel is returned.

Value

If panelname is set the panel of that name is returned, if not set the most recently created panel is returned.

Warning

Note: returning of the most recent panel may fail when running R on a Windows machine in DOS. A warning is contained within the function.

References

rpanel: Simple interactive controls for R functions using the tcltk library (http://www.stats.gla.ac.uk/~adrian/research-reports/rpanel.ps)

See Also

rp.control

Examples

rp.control(realname = "newpanel") # create a panel - will be created in .GlobalEnv as "newpanel"
rp.control() # creates the panel, but does not return a handle to it - created as ".rpanel2"
panel2 <- rp.panel("newpanel") # pick up the first panel
## Not run: panel <- rp.panel() # gets a handle to the latest panel created

[Package rpanel version 1.0-3 Index]