Embedded R Graphics Devices within GUIs
Using the R gtk device package, one
can create a Gtk Drawing Area widget using, e.g. RGtk, and then arrange
to have R use that widget as a regular gtk graphics device. In this
way, one gets R graphics embedded within ones own GUI.
Simple but powerful applications of this includes
The code to create these devices and plots is
- a scrolled graphics device
- a collection of devices/widgets
organized with a paned layout which
provides handles or grips for interactively
resizing the devices within the given area.
- a graphics region within an HTML page, much like the
R graphics plugin for Netscape via the SNetscape package.
- Screen Shot
Martyn Plummer and I are working on a package that will provide this
feature as a dynamically loadable package, avoiding the need to patch
R and making this more flexible and extensible.
Duncan Temple Lang
Last modified: Mon Feb 25 07:28:28 EST 2002