asCairoDevice {cairoDevice}R Documentation

Converting GTK+ widgets to Cairo graphics devices

Description

Allows one to convert an arbitrary GTK+ widget (usually a GtkDrawingArea) or a GdkDrawable (like a GdkPixmap) to a Cairo graphics device, so that R plot commands draw to the widget.

Usage

asCairoDevice(widget, pointsize = 10)

Arguments

widget The widget or drawable to which the R graphics are drawn
pointsize The default font size in the R plot

Details

The main purpose of this function is to allow the user to embed an R plot in a GTK user interface constructed with RGtk2. Please see the examples in the RGtk2 package.

Author(s)

Michael Lawrence

References

http://www.ggobi.org/rgtk2 http://www.gtk.org/ http://www.cairographics.org/


[Package cairoDevice version 1.2 Index]