1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #shut down all open graphics devices graphics.off() png(file="master.png") dev.control("enable") plot(1:10) jpeg(file="copy1.jpg",width=600,height=600) dev.set(2) dev.copy(which=3) pdf(file="copy2.pdf",width=9,height=9) dev.set(2) dev.copy(which=4) svg(file="copy3.svg",width=3,height=3) dev.set(2) dev.copy(which=5) graphics.off() |