b

Inlined Graphics Devices

This is an example of using the R gtk device within an HTML widget. It requires a modified version of R for the moment and unfortunately requires the use of the Gnome interface (rather than being able to run in Emacs).
And we can produce plots by clicking on this link.

The code that creates the device and puts it into the HTML widget is in gtkhtml.S.

  library(gtk)
  dev <- gtkDrawingArea()
  asGtkDevice(dev)
  dev$Show()
  box <- gtkHBox(TRUE,10)
  box$PackStart(dev)
  box
All the user needs to put in the HTML document is
 <OBJECT TYPE="app/x-R-device" NAME="device" WIDTH=500 HEIGHT=400></OBJECT>

Duncan Temple Lang <duncan@research.bell-labs.com>
Last modified: Mon Aug 12 07:30:13 EDT 2002