title: How to create plots in multiple windows and keep them separate in R
body: <p>I'm sure this is an easy problem, but my google / help foo has failed me, so it's up to you.</p>
  
  <p>I have an R script that generates several plots, and I want to view all the plots on screen at once (in separate windows), but I can't work out how to open multiple graphics windows.  I'm using ggplot2, but I feel this is a more basic problem, so I'm just using base grapics for this simple example</p>
  
  <pre><code>x&lt;-c(1:10)
  y&lt;-sin(x)
  z&lt;-cos(x)
  dev.new()
  plot(y=y,x=x)
  dev.off()
  dev.new()
  plot(x=x,y=z) 
  </code></pre>
  
  <p>But this doesn't work.  I'm on Windows if this matters (Windows + Eclipse + StatEt)</p>