Paul Matthias Diderichsen
2007-Jul-05 08:17 UTC
[R] pgup/pgdown in R Graphics Window under Linux
Dear S-users. This should be an easy one: How do I change pages on an X11 graphics device under linux? I thought that the page-up/page-down keys were supposed to do the trick, but the frame (window) seems to be kind of immune to any kind of keyboard input. The only reaction I ever see is that the mouse pointer changes to a "+" when moved into the frame. I issue these commands: ------------------------------ QUOTE START ---------------------------------------- [pmd at vmware_diderpm ~]$ R R version 2.5.1 (2007-06-27) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.> library(lattice) > xyplot(speed~dist|speed, data=cars, layout=c(3,3)) > sessionInfo()R version 2.5.1 (2007-06-27) i686-redhat-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" other attached packages: lattice "0.15-11">-----------------------------QUOTE END ----------------------------------------- Which produces the following frame: Is it necessary to initialize the graphics device so that old pages are stored and accessible for paging? Or am I just pressing the wrong buttons. Any input is appreciated! Please let me know if further info re. versions/installed packages/etc is needed. Thanks, PMD. ***********Abbott GmbH & Co. KG *********** Sitz der Gesellschaft: Wiesbaden, Amtsgericht Wiesbaden HRA 4888 Pers?nlich haftende Gesellschafterin: Abbott Management GmbH Sitz der Gesellschaft: Wiesbaden, Amtsgericht Wiesbaden HRB 12889 Gesch?ftsf?hrer: Siegfried Brune, Jaime Contreras, Rodolfo Viana Vorsitzender des Aufsichtsrates: John Landgraf *********** L e g a l D is c l a i m e r *********** Der Inhalt dieser Nachricht ist vertraulich, kann gesetzlichen Bestimmungen unterliegen, kann vertrauliche Informationen beinhalten und ist nur f?r den direkten Empf?nger bestimmt.Sie ist Eigentum von Abbott Laboratories bzw. der betreffenden Niederlassung. Nicht authorisierte Benutzung, unbefugte Weitergabe sowie Kopieren jeglicher Bestandteile dieser Information ist streng verboten und kann als rechtswidrige Handlung eingestuft werden. Sollten Sie diese Nachricht f?lschlicherweise erhalten haben, informieren Sie bitte Abbott Laboratories umgehend, indem Sie die Email zur?ckschicken und diese dann zusammen mit allen zugeh?rigen Kopien oder Dateianh?ngen zerst?ren. The information contained in this communication is confidential, may be subject to legal privileges, may constitute inside information, and is intended only for the use of the addressee. It is the property of Abbott Laboratories or its relevant affiliate. Unauthorized use, disclosure or copying of this communication or any part thereof is strictly prohibited and may be unlawful. If you have received this communication in error, please notify Abbott Laboratories immediately by return e-mail and destroy this communication and all copies thereof, including all attachments.
On Thu, 5 Jul 2007, Paul Matthias Diderichsen wrote:> Dear S-users.This is the help forum for R users ....> This should be an easy one: How do I change pages on an X11 graphics > device under linux? > > I thought that the page-up/page-down keys were supposed to do the trick,It is baffling, rather than easy. What did you find in your homework that told you that the X11() device had 'pages' and responded to those keys?> but the frame (window) seems to be kind of immune to any kind of keyboard > input. The only reaction I ever see is that the mouse pointer changes to a > "+" when moved into the frame.I am unaware of any documentation that says otherwise, so please enlighten us with the fruits of your researches. The windows() device has this capability, but it is not enabled by default. I don't believe any of the third-party graphics devices in CRAN package do. [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 7/5/07, Paul Matthias Diderichsen <paulmatthias.diderichsen at abbott.com> wrote:> Dear S-users. > This should be an easy one: How do I change pages on an X11 graphics > device under linux? > > I thought that the page-up/page-down keys were supposed to do the trick, > but the frame (window) seems to be kind of immune to any kind of keyboard > input. The only reaction I ever see is that the mouse pointer changes to a > "+" when moved into the frame. > > I issue these commands:[...]> > 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 -Deepayan