how to save plots in r

Solutions on MaxInterview for how to save plots in r by the best coders in the world

showing results for - "how to save plots in r"
Frida
03 Jan 2017
1jpeg(file="saving_plot1.jpeg")
2hist(Temperature, col="darkgreen")
3dev.off()
4
5png(file="C:/Datamentor/R-tutorial/saving_plot2.png",
6width=600, height=350)
7hist(Temperature, col="gold")
8dev.off()
9
10bmp(file="saving_plot3.bmp",
11width=6, height=4, units="in", res=100)
12hist(Temperature, col="steelblue")
13dev.off()
14
15tiff(file="saving_plot3.tiff",
16width=6, height=4, units="in", res=100)
17hist(Temperature, col="steelblue")
18dev.off()
19
20pdf(file="saving_plot4.pdf")
21hist(Temperature, col="violet")
22dev.off()
23
24postscript(file="saving_plot4.ps")
25hist(Temperature, col="violet")
26dev.off()