From cdg4 at princeton.edu  Mon Jul 25 20:15:59 2016
From: cdg4 at princeton.edu (Daniel Greenidge)
Date: Mon, 25 Jul 2016 14:15:59 -0400
Subject: [Rd] getGraphicsEvent() alternative for cairo graphics device?
Message-ID: <CAN_GHySs42vK5U1xZYP8h7ZPdFyOcHnEZK4Sn91e7htv=7E54A@mail.gmail.com>

Hi all,

I'm writing an interactive plotting function for viewing fMRI
datasets. Currently, I get keypresses using
grDevices::getGraphicsEvent().

Unfortunately getGraphicsEvent() only supports the X11(type="Xlib")
graphics device on Unix systems. The Xlib device doesn't support
buffering (i.e. dev.hold() and dev.flush()), so redrawing the plots
causes lots of flickering.

Is there a way to get keypresses while using the cairo graphics
device? Alternatively, is there a way to prevent flickering with the
Xlib graphics device?

Best,
Daniel Greenidge



[Rd] getGraphicsEvent() alternative for cairo graphics device?
Daniel Greenidge