I have several monitors and I want to display in full screen certain plots on specified monitors.
This could be done by hand, but I wonder if it can be coded in R?
Ideally, something like:
monitor(2) #define monitor 2 as the space where graphic devices will be drawn
windows ("maximized") #create empty graphic device maximized to the screen/monitor
plot (0) # do plot.
There are two interrelated questions this problem:
1: How can one find the maximum dimensions of a monitor in R? I found a solution of 11 years ago here, but I get a zero value in return. Currently, I am creating a new graphic Window, then maximize it by hand (by clicking on the "Maximize bottom" at the top right hand of the window), then getting the size in inches with the dev.size("in"), and then using those values in new graphic windows. Is there an easy way to create graphic windows in full screen?
windows() #step 1 and 2 ; create new window, then maximize it by hand
dev.size(units = "in") #find dimension of largest possible window in inches
windows(11.25000,19.13542) #create graphic device of given size
windows(11.25000,19.13542) #create second graphic device of given size
- How can we control the monitor on which a given window is drawn?. A similar question was formulated 10 years ago, but there was not response at the time. Over that many years, has this changed?