Hi, can you please describe what did you do exactly? Which commands did you use in order to redirect the output to a file? It sound like you have forgotten to call dev.off(). Look ?dev.off Ott | Date: Tue, 15 Apr 2003 16:53:32 +0200 | From: Martin Schmettow <martin.schmettow at bibliothek.uni-regensburg.de> | | Hi there. | | as a newbie I figured out the basics of R but when it came to graphic | output it was a bad surprise. | All but the X11 device do not function properly. Most of them generate | an empty file and pdf() produces non valid output (gs and acroread as well). | Very annoying, because I have to write a report. | I got the recent stable binary rpm (v1.6.2) from CRAN on a SuSE Linux 8.1. | Any help? | | CU | Martin.
Hi there. as a newbie I figured out the basics of R but when it came to graphic output it was a bad surprise. All but the X11 device do not function properly. Most of them generate an empty file and pdf() produces non valid output (gs and acroread as well). Very annoying, because I have to write a report. I got the recent stable binary rpm (v1.6.2) from CRAN on a SuSE Linux 8.1. Any help? CU Martin. -- Martin Schmettow Universit?tsbibliothek Regensburg, Projekt Meta-Akad http://www.bibliothek.uni-regensburg.de/projekte/metaakad/metaakad.htm
-----Original Message----- From: Martin Schmettow [mailto:martin.schmettow at bibliothek.uni-regensburg.de] Sent: 15 April 2003 16:54 To: r-help at stat.math.ethz.ch Subject: [R] graphics output produces corrupt/empty files Hi there. as a newbie I figured out the basics of R but when it came to graphic output it was a bad surprise. All but the X11 device do not function properly. Most of them generate an empty file and pdf() produces non valid output (gs and acroread as well). Very annoying, because I have to write a report. I got the recent stable binary rpm (v1.6.2) from CRAN on a SuSE Linux 8.1. Any help? CU Martin. -- Martin Schmettow Universit?tsbibliothek Regensburg, Projekt Meta-Akad http://www.bibliothek.uni-regensburg.de/projekte/metaakad/metaakad.htm ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help dev.off() ********* Have you included dev.off() at the end of your graphic commands? HTH Bernhard ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ----------------------------------------------------------------------
Martin Schmettow <martin.schmettow at bibliothek.uni-regensburg.de> writes:> Hi there. > > as a newbie I figured out the basics of R but when it came to graphic > output it was a bad surprise. > All but the X11 device do not function properly. Most of them generate > an empty file and pdf() produces non valid output (gs and acroread as > well). > Very annoying, because I have to write a report. > I got the recent stable binary rpm (v1.6.2) from CRAN on a SuSE Linux 8.1. > Any help?Don't forget dev.off() when you're finished plotting; the file I/O is buffered. Or plot to X11 and use dev.copy2eps(file="foo.eps"). -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
On Tue, 2003-04-15 at 15:53, Martin Schmettow wrote:> Hi there. > > as a newbie I figured out the basics of R but when it came to graphic > output it was a bad surprise. > All but the X11 device do not function properly. Most of them generate > an empty file and pdf() produces non valid output (gs and acroread as well). > Very annoying, because I have to write a report. > I got the recent stable binary rpm (v1.6.2) from CRAN on a SuSE Linux 8.1. > Any help? > > CU > Martin.Hi After producing your file with pdf() you have to do dev.off() pdf("file") plot(...) dev.off() Have you done it ? Regards EJ