[R] automatically jpeg output

Benilton Carvalho bcarvalh at jhsph.edu
Fri Jul 20 17:44:46 CEST 2007


jpeg(...) ##if you have X11
bitmap(..., type="jpeg") ##otherwise

b

On Jul 20, 2007, at 11:34 AM, Ding, Rebecca wrote:

> Dear R users,
>
> I used R to draw many histograms and I would like to automatically  
> save
> them into a jpeg file. I tried the following code since I know .ps  
> file
> could be saved like this way:
>
> postscript("AYA_ELA.jpeg",horizontal=F,onefile=T)
> ......#some funtions inside here
> dev.off()
>
> There was a jpeg file, however, there is no pictures inside. Any
> suggestion?
>
> Thanks.
>
> Rebecca



More information about the R-help mailing list