[R-SIG-Mac] Location of plot() window
Dennis Fisher
fisher at plessthan.com
Mon Apr 30 22:28:02 CEST 2018
Simon
The Cocoa suggestion should address my need — thanks so much.
Dennis
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/>
> On Apr 30, 2018, at 1:26 PM, Simon Urbanek <simon.urbanek at R-project.org> wrote:
>
> Dennis,
>
> 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):
>
> install.packages("Cocoa",,"http://rforge.net")
>
> library(Cocoa)
>
> ## 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.
>
> Cheers,
> Simon
>
>
>
>> On Apr 30, 2018, at 11:46 AM, Dennis Fisher <fisher at plessthan.com> wrote:
>>
>> R 3.5.0
>> OS X
>>
>> Colleagues
>>
>> 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
>>
>>
>>
>> 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
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
[[alternative HTML version deleted]]
More information about the R-SIG-Mac
mailing list