I have tried to put graphs in jpeg files, but even if a file is produced, neither the graphics software nor the web browser can open such a file: "Can't read file header". Any suggestions as to what might cause this? BTW, the output would presumably be better as png files, but I don't really know if I can count on my students' web browsers being able to read this format. Anyone who knows what browsers *can't* handle png files? --robert ******************* Robert Lundquist Div of Quality Technology & Statistics Lule? University of Technology tel +46-920-91078 fax +46-920-72160 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 30 Nov 2000, Robert Lundquist wrote:> I have tried to put graphs in jpeg files, but even if a file is produced, > neither the graphics software nor the web browser can open such a file: > "Can't read file header". Any suggestions as to what might cause this?No idea, as it works here with rw1011 in both IE5.01 and Netscape 4.75. I suspect you did not produce or save the file correctly, and as you supplied no information about what you did or the version of R or ....> BTW, the output would presumably be better as png files, but I don't really > know if I can count on my students' web browsers being able to read this > format. Anyone who knows what browsers *can't* handle png files?No, but recent Netscape and IE can, and I think 4.x or later of either can. From memory (it's a long time since I saw either) 3.x versions could not. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 30.11.2000 14:38 Uhr, Robert Lundquist wrote:> BTW, the output would presumably be better as png files, but I don't really > know if I can count on my students' web browsers being able to read this > format. Anyone who knows what browsers *can't* handle png files?You may be able to find this information on the png home page at http://www.libpng.org/pub/png/ . Seems to be unreachable right now (for me, that is). To my little experience, "new" browsers will display png files all right ("new" meaning something >= Netscape 4.7 or Explorer 5). Older versions may display them partly (without transparency effects, for instance). Or not at all. :-( Cheers Kaspar Pflugshaupt -- Kaspar Pflugshaupt Geobotanisches Institut Zuerichbergstr. 38 CH-8044 Zuerich Tel. ++41 1 632 43 19 Fax ++41 1 632 12 15 mailto:pflugshaupt at geobot.umnw.ethz.ch privat:pflugshaupt at mails.ch http://www.geobot.umnw.ethz.ch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Robert Lundquist wrote:> thanks for your reply. Since I'm not too fluent in R, my attempts might be > awkward, but I'll try to describe how I did it. I use R 1.1.1, and the > session looked as follows: > > >jpeg("plot.jpg") > >plot(sin,2*pi) > > This produces a file, but I can't open it. The corresponding sequence worked > just fine for PNG files with > > >png("test.png") > >plot(sin,2*pi) > > so my understanding of it is that something happens with the jpeg driver. Am > I wrong there?Aha. So you forgot to use dev.off(), e.g.: jpeg("plot.jpg") plot(sin, 2*pi) dev.off() does the job. Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 30 Nov 2000, Kaspar Pflugshaupt wrote:>On 30.11.2000 14:38 Uhr, Robert Lundquist wrote: > >> BTW, the output would presumably be better as png files, but I don't really >> know if I can count on my students' web browsers being able to read this >> format. Anyone who knows what browsers *can't* handle png files? > >You may be able to find this information on the png home page at >http://www.libpng.org/pub/png/ . Seems to be unreachable right now (for me, >that is).It was unreachable for me too.>To my little experience, "new" browsers will display png files all right >("new" meaning something >= Netscape 4.7 or Explorer 5). Older versions may >display them partly (without transparency effects, for instance). Or not at >all. :-(<rant> Yes. Unfortunately, PNG is yet another example of good technologies being (or have been) ignored by browser makers because browser makers are more concerned with winning a browser war than providing useful software. </rant> I would suggest installing the ImageMagick "display" utility on all systems. <URL:http://www.simplesystems.org/ImageMagick/www/display.html>. It can display images on all systems running X server. Also, ImageMagick itself <URL:http://www.simplesystems.org/ImageMagick/> runs on most popular OSes, including Mac and Win32 (and obviously, unices), so you may get something out of that that can be used to view graphs on most platforms. If all else fails, display can be configured as external viewer, which is something most browsers support, including lynx. Best, Kjetil -- Kjetil Kjernsmo Graduate astronomy-student Problems worthy of attack University of Oslo, Norway Prove their worth by hitting back E-mail: kjetikj at astro.uio.no - Piet Hein Homepage <URL:http://www.astro.uio.no/~kjetikj/> Webmaster at skepsis.no -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
For all of you who have reached R, here's Virgina Woolf on the subject: "It was a splendid mind. For if thought is like the keyboard of a piano, divided into so many notes, or like the alphabet is ranged in twenty-six letters all in order, then his splendid mind had no sort of difficulty in running over those letters one by one, firmly and accurately, until it had reached the letter Q. He reached Q. Very few people in the whole of England reach the letter Q.... But after Q? What comes next?... Still, if he could reach R it would be something. Here at least was Q. He dug his heels in at Q. Q he was sure of. Q he could demonstrate. If Q then is Q--R--.... "Then R..." He braced himself. He clenched himself.... "...In that flash of darkness he heard people saying--he was a failure--that R was beyond him. He would never reach R. On to R, once more. R---.... "...He had not genius; he had no claim to that: but he had, or he might have had, the power to repeat every letter of the alphabet from A to Z accurately in order. Meanwhile, he stuck at Q. On then, on to R." Virginia Woolf "To The Lighthouse" All the best, ANDREW Professor of Finance Graduate School, Bangkok University -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._