How to get two windows with different plots

后端 未结 3 1266
旧时难觅i
旧时难觅i 2021-02-05 02:01

When we have a window with plots, is there a way to tell R to display a new plot in a new window?

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 02:29

    plot(1:1)
    dev.new()
    plot(2,2)
    dev.set(dev.prev()) # go back to first
    title(main="test dev 1")
    
    dev.set(dev.next()) # go to second
    title(main="test dev 2")
    

提交回复
热议问题