[R] identify which commands have generated graphics?
murdoch at stats.uwo.ca
Fri Oct 30 20:37:02 CET 2009
On 10/30/2009 3:13 PM, Liviu Andronic wrote:
> Dear all
> Is it possible to programmatically detect which commands have
> generated a graphic to the x11() graphics device? When in front of the
> computer, it is easy to see that after a command---say, plot(1:10)---a
> graphics window opens/activates and displays a graphic. But is there a
> way to detect this from the command line?
You could probably detect changes using some combination of setHook()
(to detect when plot.new() is called) and recordPlot() (to detect any
changes to the current plot), but I don't think there's any easy way to
do what you want.
More information about the R-help