title: R - query position of the graphics/plot window
body: <p>Is it possible to ask a plot window for its position in R?</p>
  
  <p>I'm doing some plotting whereby a number of windows get successively opened, and it would be useful if these appeared at the same position and with the same size as previous graph windows for quick comparison.</p>
  
  <p>I can get the size of a window via <code>dev.size</code> and set the size of subsequent windows with this.</p>
  
  <p>However, how can I get the position of the window?</p>
  
  <p>(Imagine the first graph pops up - the user moves and resizes it to suit them. All subsequent windows should appear at that position/size so it almost looks like an animation, making it easier to tell what has changed between subsequent graphs.</p>
  
  <p>I can't simply use the same graph window and graph over the top of it, because sometimes I want to remove lines from the graph (keeping all else the same) as opposed to adding them.)</p>