[R] any way to set X11() device geometry (screen offsets)?

Thomas Lumley tlumley at u.washington.edu
Tue May 29 17:33:40 CEST 2001

> -----Original Message-----
> From: B.Rowlingson at lancaster.ac.uk
> To: Thomas Lumley
> Cc: Chris Marshall; 'r-help at stat.math.ethz.ch'
> Sent: 5/29/01 8:19 AM
> Subject: Re: [R] any way to set X11() device geometry (screen offsets)?
>						 You might also be able
> to
> use the dev. functions to figure out which is the active window so you
> can
> insert 'ACTIVE' or 'inactive' in the window name.

dev.list() gives the list of current device numbers and dev.cur() gives
which one is "ACTIVE"

R> l<-dev.list()
R> act<-paste(l,"(inactive)")
R> act[match(dev.cur(),l)]<-paste(dev.cur(),"(ACTIVE)")
R> paste("R Graphics Device:",act)
[1] "R Graphics Device: 2 (inactive)" "R Graphics Device: 3 (ACTIVE)"


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list