On Tue, 12 Aug 2008, Bachas wrote:
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?
Does anyone ever read the help file? ?bitmap does not mention that form
of file name, and you cannot do it with bitmap().
Also, you quote a message about R 2.1.1! The posting guide asks you to
update before posting, so we are entitled assume that you have 2.7.1 for
which the jpeg() device ought to work without an X11 server available. I
suspect you don't have a current version of R.
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
[EMAIL PROTECTED]
Tel: 021-64363311-123
Shanghai Center for Bioinformatics Technology
Floor 12th,100# QinZhou Road
Shanghai,China,200235
______________________________________________
[EMAIL PROTECTED] 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.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Brian D. Ripley, [EMAIL PROTECTED]
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.