是否有类似于Matlab的“全部关闭"命令?在R中? [英] Is there a command similar to Matlab's "close all" in R?

查看:94
本文介绍了是否有类似于Matlab的“全部关闭"命令?在R中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Matlab中,我可以在脚本开头使用close all来关闭绘图,以避免堆积图形.

In Matlab, I can use close all at the beginning of a script to close the plots to avoid piling up the figures.

R中是否有类似的命令?

Is there a similar command in R?

推荐答案

graphics.off()应该可以工作.通过根据需要多次调用dev.off()来实现.

graphics.off() should work. It is implemented by calling dev.off() as many times as necessary.

这篇关于是否有类似于Matlab的“全部关闭"命令?在R中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆