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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With