save a histogram into file
2
0
Entering edit mode
@arici-pogonici-3872
Last seen 9.6 years ago
Dear All, please could you advice on how to save a histogram into a file: I generate the histogram by using > hist command; then I use > pdf() or >jpeg() or > postscript(0, but none works. Thanks . arici [[alternative HTML version deleted]]
• 6.0k views
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 6 weeks ago
United States
This is for R-help. But FYI you must start the driver then issue graphics commands, then shut down to close the target file. pdf("myfile.pdf") hist(x) dev.off() On Tue, Jan 5, 2010 at 1:09 AM, Arici Pogonici <arici.voievod at="" gmail.com=""> wrote: > Dear All, > > please could you advice on how to save a histogram into a file: > > I generate the histogram by using > hist command; then I use >> pdf() or >jpeg() or > postscript(0, but none works. Thanks . > > arici > > ? ? ? ?[[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT
0
Entering edit mode
@prashantha-hebbar-3526
Last seen 4.4 years ago
Hi Arici, > pdf("NameOfTheFile.pdf") > hist(yourData) >dev.off() Will save NameOfTheFile.pdf in your current directory where you have executed R. bye, prashantha Dear All, please could you advice on how to save a histogram into a file: I generate the histogram by using > hist command; then I use > pdf() or >jpeg() or > postscript(0, but none works. Thanks . arici     [[alternative HTML version deleted]] _______________________________________________ Bioconductor mailing list Bioconductor@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/bioconductor Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 1063 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6