rpanel-package {rpanel}R Documentation

simple interactive controls for R functions using the tcltk package

Description

rpanel provides a set of wrapper functions to build simple GUI controls for R functions. Uses could include changing a parameter on a graph (and animating it) with a slider, or a "doublebutton", right up to more sophisticated mini-applications.

Details

Package: rpanel
Type: Package
Version: 1.0-1
Date: 2006-06-12
License: GNU

This package contains a number of functions (with help and examples) and several example scripts.

Package functions

rp.panelname: automatic generation of a panel name
rp.control: create an rpanel
rp.slider: add a slider to a panel, to graphically control a numeric variable
rp.textentry: adds a box allows text to be entered
rp.button: adds a button to the panel with a nominated function called on pressing
rp.checkbox: adds a checkbox to the panel, to control a logical variable
rp.radiogroup: adds a set of radiobuttons to the panel
rp.doublebutton: adds a widget with '+' and '-' buttons, to increment and decrement a variable
rp.image: adds an image to the panel, the action function is called with coordinates on clicking
rp.line: draws a line connecting the pixel locations x1, y1 to x2, y2 on the specified rp.image
rp.deleteline: removes a line from an rp.image
rp.clearlines: removes all lines from an rp.image
rp.messagebox: displays a message in a pop-up window
rp.tkrplot: calls Luke Tierney's tkrplot function to allow R graphics to be displayed in a panel
rp.tkrreplot: calls Luke Tierney's tkrreplot functions to allow R graphics to be displayed in a panel.
rp.block: blocks use of the R console until a panel is closed
rp.panel: returns a named panel or the most recently created panel
rp.do: executes a nominated user defined callback function

Example scripts

rp.gulls: STEPS module - the Birds and the Bees
rp.ancova: Interactive analysis of covariance
rp.power: Interactive power calculations for a two-sample t-test
rp.rmplot: Interactive plotting of repeated measurement data
rp.tables: Interactive statistical tables
rp.regression2: Interactive display of regression with two covariates
rp.plot3d: Interactive display of a plot of three variables

Author(s)

A.W.Bowman, R.Bowman & E.Crawford

Maintainer: Ewan Crawford <ewan@stats.gla.ac.uk>

References

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

See Also

rp.control,rp.button,rp.slider,rp.doublebutton,rp.textentry,rp.checkbox,rp.radiogroup

Examples

rp.gulls()

[Package rpanel version 1.0-3 Index]