[rkward-devel] Request for feedback on plot history

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Sep 5 11:44:42 UTC 2010


On Sunday 05 September 2010, Thomas Friedrichsmeier wrote:
> But perhaps it's not that hard after all? I just tried this with the
> X11Cairo device:
>     plot(1, 1)
>     a <- recordPlot()
>     dev.off()
>     replayPlot (a)
>     b <- recordPlot()
>     identical (a, b)	# TRUE
>     title ("something's changed")
>     c <- recordPlot()
>     identical (a, c)	# FALSE
> I have not yet tested the windows() or quartz() devices, yet. But if the
> same thing works, there, this means we do have a reliable way to tell,
> whether a plot has been modified after all (only after calling
> recordPlot(), but still).

Update: I have tested on windows(), now, and it works there, too. And 
identical (a, b) appears to be pretty fast. For a 1.6MB plot (i.e. above the 
default limit), it's around 10 msecs on my Centrino @ 2.0 GHz.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20100905/33c0c8b9/attachment.sig>


More information about the Rkward-devel mailing list