Cannot create new plotting window (device?) with par(new=T)


I want to create a new window for each additional plot in R. I tried

plot(rnorm(20), new=TRUE)

and also

par(new=T) plot(rnorm(20), new=TRUE)

Neither gives me a new window. Do I really need to create a new device?


The plot.new() function is used to start a new plot on the current device and will open a default device if there is not a device currently open. If you want a new device (so that you have the old plot in one window and the new plot in another window) then use dev.new() or other device functions.


par(new = T) is used for plotting over an existing plot. You will need to create a new device for each plot, closed with dev.off(). If you want multiple plots in the same window, try using par(mfrow=c(2,2) for 2 rows of 2 plots.


  • ExtJS 3.3 Format.Util.Ext.util.Format.dateRenderer returning NaN
  • Making a program that ask the user 5 questions in random without duplicate the questions [duplicate]
  • How to find out what makes poi corrupt a xlsx / xlsm file
  • how to upload photo in database and how to retrive in jsp page
  • How to split string from meshed content and add html element
  • displaying data from multiple tables in datagridview
  • How to run a .jar file, which contains OpenCV code and was created using ant, from command line?
  • Parallel exact matrix diagonalization with Python
  • Using MS Dynamics NAV with PHP [closed]
  • Control access to WebDav/Apache using Python
  • How to access GWT's JsInterop exported types from browser console?
  • Setting jCheckBox invisible in jTable
  • How to set title name of the pdf. While viewing the Document(New Tab)
  • A Back/Home Button [Java]
  • Get Element By Classname Script Not Working
  • QNetworkAccessManager one instance and connecting slots
  • No Gradle file syntax highlighting in Eclipse Mars.2
  • Loading hyperspectral images in Octave
  • Can't hide status bar in AVPlayerViewController's portrait mode
  • Admob in ListView not clickable
  • How to change the host IP sent in emails to new GitLab users to a publicly visible IP, not the local
  • How to use Typescript with libraries like Ampersand.js that parse configs to build prototypes
  • Is there a better way for handling SpatialPolygons that cross the antimeridian (date line)?
  • C++ STL stack pop operation giving segmentation fault
  • JavaScript Regex to Match Boundaries of Words with diacritics
  • Drag and drop unicode TText in DelphiXe4
  • How to call jQuery function in HTML returned by AJAX
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • How to warp text around image in iOS?
  • How to handle div that is created dynamically in a table
  • Comma decimal separator is ignored by ASP.NET MVC model binder
  • Capture SIGFPE from SIMD instruction
  • Using Service Component Runtime
  • How do I use TagLib-Sharp to write custom (PRIV) ID3 frames?
  • WPF custom control and direct content support
  • CAS 4 - Not able to retrieve the LDAP groups after successful authentication
  • Create/delete users from text file using Bash script
  • ARKit code issue {unknown error -1=ffffffffffffffff error: Task failed with exit 1}
  • Time Complexity of Fibonacci Algorithm [duplicate]
  • How to check if object is null in Java?