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-6
Date: 2010-10-05
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.listbox: adds a listbox 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.pos: a demonstration function for layout control
rp.grid: a grid system for layout control
rp.do: executes a nominated user defined callback function

Applications functions

rp.gulls: STEPS module - the Birds and the Bees
rp.ci: Confidence intervals
rp.ancova: Analysis of covariance
rp.power: Power calculations for a two-sample t-test
rp.normal: Fitting a normal distribution to a single sample
rp.rmplot: Plotting of repeated measurement data
rp.tables: Interactive statistical tables
rp.regression: Regression with one or two covariates
rp.plot3d: Interactive display of a plot of three variables
rp.likelihood: Exploration of one and two parameter likelihood functions
rp.logistic: Interactive display of logistic regression with a single covariate
rp.cartoons: A menu-driven set of rpanel illustrations
rp.geosim: Simulation of spatial processes
rp.mururoa: Sampling in Mururoa Atoll
rp.firth: Sampling in a firth

Author(s)

A.W.Bowman & E.Crawford

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

References

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

See Also

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

Examples

if (interactive()) {
   rp.gulls()
   }

[Package rpanel version 1.0-6 Index]