[R] unable to start device JPEG in linux
Bachas
cbachas at hotmail.com
Tue Aug 12 16:25:48 CEST 2008
I have half a solution:
bitmap(file="filename.jpg",type="jpeg"); works to generate a jpeg file.
However, I want my plots to be stored in single jpeg files and I can't get
this to work:
bitmap(file="Rplot%03d.jpg",onefile=FALSE,type="jpeg");
it overwrites my Rplot001.jpg file.
Any one additional comments on how to generate multiple jpeg files?
Bachas wrote:
>
> I have the same problem. I am using R on our bioinformatics server. From
> what I have read jpeg() needs to use a widows graphics device like X11 to
> be able to generate a jpeg file.
> I am also very curious to see if anyone knows a solution, now I need to
> use pdf() of ps() which is more time consuming and uses more diskspace.
>
>> jpeg()
> Error in X11(paste("jpeg::", quality, ":", filename, sep = ""), width, :
> unable to start device JPEG
> In addition: Warning message:
> In jpeg() : unable to open connection to X11 display ''
>> capabilities()
> jpeg png tcltk X11 http/ftp sockets libxml fifo
> FALSE FALSE TRUE FALSE TRUE TRUE TRUE TRUE
> cledit iconv NLS profmem
> TRUE TRUE TRUE FALSE
>
>
> Haiyan Pan wrote:
>>
>> r-help,
>> When I want to use jpeg() in R-2.1.1 which is installed in linux
>> platform to generate a jpeg file, the error occurs as following:
>>
>> > jpeg()
>> Error in X11(paste("jpeg::", quality, ":", filename, sep = ""), width, :
>> unable to start device JPEG
>> In addition: Warning message:
>> unable to open connection to X11 display ''
>>> capabilities()
>> jpeg png tcltk X11 http/ftp sockets libxml fifo
>> FALSE FALSE TRUE FALSE TRUE TRUE TRUE TRUE
>> cledit IEEE754 iconv
>> TRUE TRUE TRUE
>>
>> X11 device is existed in this machine, would you suggest me how to
>> resolve this problem.
>> Many thanks for your help and it will be greatly appreciated!
>>
>>
>>
>> = = = = = = = = = = = = = = = = = = = =
>>
>> Haiyan Pan
>> hypan at scbit.org
>>
>> Tel: 021-64363311-123
>> Shanghai Center for Bioinformatics Technology
>> Floor 12th,100# QinZhou Road
>> Shanghai,China,200235
>>
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html
>>
>
>
--
View this message in context: http://www.nabble.com/unable-to-start-device-JPEG-in-linux-tp3569841p18945341.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list