[R-SIG-Mac] Location of plot() window
simon.urbanek at R-project.org
Mon Apr 30 22:26:43 CEST 2018
unfortunately, the Quartz windows are always placed at the same coordinates 100 x 100 and there is no option to change that.
However, you can move it around using the Cocoa package if you so desire (assuming you're in the R.app):
## create a quartz device and get its window
## make sure you run the following as one command or else you'll get the console window instead
quartz(); w = .M(.M("NSApplication", "sharedApplication"), "keyWindow")
## move the window:
.M(w, "setFrameTopLeftPoint:", NSMakePoint(100, 1000))
You can move it anywhere on any screen - also off-screen.
The other alternative is to move it using AppleScript.
> On Apr 30, 2018, at 11:46 AM, Dennis Fisher <fisher at plessthan.com> wrote:
> R 3.5.0
> OS X
> When I open a plot() window on-screen, it appears in the lower left corner of the screen.
> Is it possible to control the location? If so, what commands?
> And, if so, can I locate it to a display other than the primary display?
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com <http://www.plessthan.com/>
> [[alternative HTML version deleted]]
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
More information about the R-SIG-Mac