Dear R People: I am using R version 1.3.1 for Windows. I produce a graph, and save it as a JPEG file. Then, when I try to look at it via the Windows Explorer, I get an error message from the Microsoft Photo program of an Unknown File format. What am I doing wrong, please? Thanks in advance. Sincerely, Erin Hodgess Assoc. Professor Dept. of Computer and Mathematical Sciences University of Houston - Downtown e-mail: hodgess at uhddx01.dt.uh.edu -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Erin Hodgess wrote:> > Dear R People: > > I am using R version 1.3.1 for Windows. > > I produce a graph, and save it as a JPEG file. > Then, when I try to look at it via the Windows Explorer, > I get an error message from the Microsoft Photo program > of an Unknown File format. > > What am I doing wrong, please?How did you save it? I did the following: jpeg("c:/test.jpg") plot(1:10) dev.off() and it works perfectly on WinNT4. Maybe you forgot dev.off()? Using the GUI for saving also works perfectly for me. 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Erin Hodgess wrote:> > ...I produce a graph, and save it as a JPEG file. > Then, when I try to look at it via the Windows Explorer, > I get an error message from the Microsoft Photo program > of an Unknown File format. >Uwe's answer may contain a clue - make sure that the file extension is jpg. IE tends to fail on graphic file display if it can't work out the encoding. Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._