使用dev.new()
.(见this related question页.)
plot(1:10)
dev.new(width=5, height=4)
plot(1:20)
更具体地说,使用哪些单位:
dev.new(width=5, height=4, unit="in")
plot(1:20)
dev.new(width = 550, height = 330, unit = "px")
plot(1:15)
edit关于Rstudio的附加论证(2020年5月),(感谢user Soren Havelund Welling)
对于Rstudio,添加dev.new(width=5,height=4,noRStudioGD = TRUE)