At 14:40 04/10/2009, denis brion wrote:

I believe I remember "locator" finishes with a right click;
And, it is out of topic, but "net""books" may have a very small screen : before drawing, I usually configure my screen with "X11(height=10)" which explicitly opens the graphical device and gives a screen which is fully seeable.

Somewhere on one of the R lists, someone suggested (sorry not to be more specific)

setHook(packageEvent("grDevices", "onLoad"),
   function(...) grDevices::X11.options(width = 4, height = 4, pointsize = 8)
)

in your .Rprofile for use on the Asus EEE
I imagine with judicious choices of width and height it would work as well on other systems. It certainly works for me


--- En date de : Sam 3.10.09, Dirk Eddelbuettel <e...@debian.org> a écrit :

> De: Dirk Eddelbuettel <e...@debian.org>
> Objet: Re: [R-sig-Debian] Graphics Device; locator function
> À: "Judson" <judson0...@gmail.com>
> Cc: r-sig-debian@r-project.org
> Date: Samedi 3 Octobre 2009, 21h24
>
> On 3 October 2009 at 15:04, Judson wrote:
> | Hi, haven't been here for a while, but everyone one was
> always so
> | helpful I thought I would ask you another really basic
> question.
> |
> | I'm running R2.9.1 in Ubuntu8.04 on a netbook (maxed out
> on memory etc
> | so I don't think that's a problem - wth it's a Dell Mini
> 9" with that
> | lpia non-architecture you told me about).
> |
> | Anyway, some of the graphics functions/parameters are
> causing
> | unresolved computation.  Wasn't sure what to do but
> I've noticed that
> | closing the graphics device causes the R routine to stop
> at least.
> |
> | The most recent example is the locator function (but may
> have caused
> | the same thing a day or two ago with abline
> |
> | I did a help lookup on "locator" and the response tells
> me that
> | "locator is supported only on devices such as 'X11',
> 'windows', and
> | 'quartz'".
>
> X11 is what is what you probably have.  See
>
>     options("device")
>
> and
>
>     help(options)
>
> which shows
>
> -----------------------------------------------------------------------------
> Options set in package grDevices:
>
>      These will be set when package
> 'grDevices' (or its name space) is
>      loaded if not already set.
>
>      'device': a character string
> giving the name of a function, or the
>           function object itself,
> which when called creates a new
>           graphics device of the
> default type for that session.  The
>           value of this option
> defaults to the normal screen device
>           (e.g., 'X11', 'windows'
> or 'quartz') for an interactive
>           session, and 'pdf' in
> batch use or if a screen is not
>           available.  If set
> to the name of a device, the device is
>           looked for first from
> the global environment (that is down
>           the usual search path)
> and then in the 'grDevices' namespace.
>
>           The default values in
> interactive and non-interactive
>           sessions are
> configurable via environment variables
>           'R_INTERACTIVE_DEVICE'
> and 'R_DEFAULT_DEVICE' respectively.
>
> -----------------------------------------------------------------------------
>
> | My device is "R Graphics: Device 2" which gives me no way
> to "right
> | click", etc. for Properties.
>
> Device 2 simply is a count of your devices.
>
> locator() is a little tricky to use, and I suspect you
> simply didn't
> "finish". I haven't used it in a while but AFAICR you need
> to click on the
> mouse in a particular sequence.
>
> Dirk
>
> | I failed to tell you that I'm running R in Emacs 22 (X11)
> in the ESS
> | Buffer.  I'm not very good at it but I'm
> trying.  Thanks for your
> | thoughts.
> |
> | Judson
> |
> | _______________________________________________
> | R-SIG-Debian mailing list
> | R-SIG-Debian@r-project.org
> | https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>
> --
> Three out of two people have difficulties with fractions.
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>




_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Michael Dewey
http://www.aghmed.fsnet.co.uk

_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to