Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在终端中运行一些 R 脚本,但发现每次我想制作新图时都必须先运行“dev.new()”。
是否有可能,通过一些环境设置,终端中的 R 默认可以在新框架中绘制(就像 Rstudio 所做的那样)?
谢谢!
对不起,我在问这个问题时犯了一个错误。它应该是新窗口中的新图(不是带有新框架的图)。很抱歉造成混乱。
我认为这应该做你想要的。
plot<-function(...){ grDevices::dev.new() graphics::plot(...) }