[R] JPEG from graphs problem

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Oct 9 20:57:51 CEST 2001


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list