I tried to run some R scripts within a terminal and just found that I have to run 'dev.new()' first every time I want to make new plots.
Is it possible, with some environment settings, R in a Terminal could plot in new frame by default (like what Rstudio does)?
Thanks!
Sorry, I made a mistake when asked the question. it should be a new plot in a new window (not a plot with a new frame). Sorry for the confusions.
I think this should do what you want.
plot<-function(...){
grDevices::dev.new()
graphics::plot(...)
}
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