[R] Antwort: Re: pgup/pgdown in R Graphics Window under Linux ['Watchdog': checked]

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Jul 9 22:20:02 CEST 2007


On 7/8/07, Paul Matthias Diderichsen
<paulmatthias.diderichsen at abbott.com> wrote:
> Hi Deepayan,
>
> "Deepayan Sarkar" <deepayan.sarkar at gmail.com> schrieb am 06.07.2007
> 02:05:02:
> > On 7/5/07, Paul Matthias Diderichsen
> > <paulmatthias.diderichsen at abbott.com> wrote:
> >> library(lattice)
> >>> xyplot(speed~dist|speed, data=cars, layout=c(3,3))
> > If this is your use case, you might be interested in
> > http://cran.r-project.org/src/contrib/Descriptions/plotAndPlayGTK.html
>
> Thanks a lot for the pointer; this package seems to be very useful when
> coding your own plots. However, it's not exactly my use case - rather an
> example to illustrate the the X11 graphics device is apparently not too
> useful for multi-page plots.
>
> The motivation for my question was that I want to use xpose4 (
> http://xpose.sourceforge.net/) under linux. Xpose is a program that
> provides functions for producing diagnostic plots for population PKPD
> model evaluation. I am not able to rewrite the entire package, wrapping
> every call to multi-page plot functions with plotAndPlayGTK.
>
> That's why I was hoping that there exist some obscure configuration option
> for X11 (seems not to be the case, cf. Prof Ripley's reply) or an
> alternative graphic device that runs under linux.

The tools seem to be there already (recordPlot and replayPlot), and it
seems mostly a matter of capturing the relevant keypresses etc. I have
no idea how hard that would be with the X11 device, but I have added
some basic functionality to the Qt based device I've been playing
with. You are welcome to try it --- details can be found at

http://dsarkar.fhcrc.org/R/R-Qt.html

I'm sure doing something similar with the Gtk/Cairo devices wouldn't
be too hard (for those who know what they are doing).

-Deepayan



More information about the R-help mailing list