title: R script using X11 window only opens for a second
body: <p>I'm running an R script via my Linux Mint 16 command line. It contains a boxplot that I want to display in a window. So I'm using x11() function for creating that window. Here is my code:</p>
  
  <pre><code>testdata &lt;- data.frame(sample(1:1000,size=100,replace=T), row.names=NULL)
  colnames(testdata)&lt;-c("data")
  
  x11()
  boxplot(testdata, main="Boxplot der Testdaten", horizontal=TRUE)
  </code></pre>
  
  <p>When I run this function in Rstudio, it will open a window and show the boxplot created. But whenever I run it from the command line of my Linux Mint 16 machine, the window will open for a second and then close again. I can see the boxplot for a second. I couldn't really find a reason for this. I'm quite new to R and never used X11 before. Any ideas would be really appreciated. Thanks!</p>