[R] Is it possible to modify the position of the graphic window ?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Nov 6 21:12:03 CET 2007
1) Did you merge the resources or restart X? You need to in order to get
new resources to be recognized.
xrdb -merge ~/.Xresources would be needed to merge resources into the
current X session.
I don't know if MacOS X11 is standard enough to support this, but it is a
very long-standing basic part of X11.
2)
options(device=function() x11(xpos=-1))
plot(1:10)
should work (does for me): it does not affect x11() in any way, just the
auto-start graphics device.
On Wed, 7 Nov 2007, Rolf Turner wrote:
>
> On 7/11/2007, at 6:39 AM, Prof Brian Ripley wrote:
>
>> Better to use resources. But you can use (in .Rprofile)
>>
>> options(device=function() x11(xpos=-1))
>>
>> The resources version would be to put in ~/.Xresources something like
>>
>> R_x11*geometry: 700x700-0+0
>
> Neither of these options appears to have any effect under Mac OSX.
> I run R from the command line from a terminal window (not from the GUI)
> and I have X11 installed so that in R
>
> > x11()
>
> does indeed put up a graphics window. But it always puts it (the
> initial
> window) in exactly the same place, irrespective of my having put the
> specified line in ~/.Xresources before starting R, or having issued the
> specified options() command immediately after having started R (before
> issuing the x11() command).
>
> It's no big deal --- I'm reasonably happy with the default position
> of the
> window. I just hate it when a computer refuses to follow
> instructions, with
> no explanation. :-(
>
> cheers,
>
> Rolf Turner
>
> P. S.:
>
> > sessionInfo()
> R version 2.6.0 (2007-10-03)
> i386-apple-darwin8.10.1
>
> locale:
> C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] misc_0.0-2
>
> loaded via a namespace (and not attached):
> [1] rcompgen_0.1-15
>
>
> ######################################################################
> Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
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
More information about the R-help
mailing list