无法使用 par(new=T) 创建新的绘图窗口(设备?) [英] Cannot create new plotting window (device?) with par(new=T)

查看:51
本文介绍了无法使用 par(new=T) 创建新的绘图窗口(设备?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为 R 中的每个附加图创建一个新窗口.我试过了

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

plot(rnorm(20), new=TRUE)

还有

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

都没有给我一个新窗口.我真的需要创建新设备吗?

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

推荐答案

plot.new() 函数用于在当前设备上开始一个新的绘图,如果有,将打开一个默认设备不是当前打开的设备.如果您想要一个新设备(以便您在一个窗口中拥有旧图,而在另一个窗口中拥有新图),请使用 dev.new() 或其他设备函数.

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) 创建新的绘图窗口(设备?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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