[Rd] graphics device event handling

From: sgerber <sgerber_at_cs.utah.edu>
Date: Mon, 19 Dec 2011 21:44:27 -0700

Hi All

I run across the following situation quite frequently and was wondering if there exists a simple solution that I missed.

Situation:
I develop some graphical display using the nice basic R graphical functions (plots, lines, images, histogramm ...). Now I would like to add a few simple user interaction capabilities.

Problem:
There seems to be no simple callback type event handling for mouse/keyboard events for the basic graphics devices. The setGraphicsEventHandlers only work on X11 (on MAC) which doesn't look nearly as nice as the basic quartz device and doesn't support transparency.

Question:
Is there a way to add graphics event handling to the CairoX11 or quartz interface in a similar simple fashion as the setGraphicsEventHandlers framework without requiring packages such as Rgtk and deviceCairo which can get fairly large and seem somewhat overkill for adding few simple interactions to existing R plot compositions.

Kind Regards
Sam



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 20 Dec 2011 - 04:46:47 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 Dec 2011 - 12:40:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive