Re: [R] png problem
Hello, Thanks for the fast reply. Paul Murrell wrote: Hi Clément Calenge wrote: Dear R-users, I have a small problem with the function png(), when used with the argument colortype=pseudo.cube. png(toto.png, colortype=pseudo.cube) image(matrix(rnorm(1), 100, 100)) dev.off() R is blocked at the last command (R does not print any prompt after the last command). Nothing is written in the file (Gimp indicates that the file is corrupted). Did you wait long enough? This example took a little while to complete for me (may need someone more familiar with the code to tell us why it is so slow). You're right, it took 45 minutes for me. However, since I need to use this code to build a Sweave vignette, I cannot use it too often (I have about thirty files to create, this would take about 20 hours to build the vignette !). I also need the colortype argument (some graphics cards do not allow the compilation of the vignette without). Does anyone knows how to speed up the process ? Clément. Paul However, png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() works fine. I tried: options(X11colortype = pseudo.cube) png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() But, here again, R is blocked. I tried to replace dev.off() by graphics.off(), but this does not resolve the problem. The problem does not occurs when the function X11() is used instead of the function png(). I searched through the mail archive, the FAQ, on google, but I did not found any solution to this problem. On the help page on the function png(), it is indicated that The colour handling will be that of the 'X11' device in use. I never used these functions before, but maybe png() is not suitable with colortype=pseudo.cube ? Can you tell me where I have missed something ? Thanks in Advance, Clément Calenge. version _ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major1 minor9.1 year 2004 month06 day 21 language R [[alternative HTML version deleted]] __ [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 -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 [EMAIL PROTECTED] http://www.stat.auckland.ac.nz/~paul/ == UMR CNRS 5558 - Equipe Ecologie Statistique Laboratoire de Biométrie et Biologie Evolutive Université Claude Bernard Lyon 1 43, Boulevard du 11 novembre 1918 69622 Villeurbanne Cedex FRANCE tel. (+33) 04.72.43.27.57 fax. (+33) 04.72.43.13.88 __ [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
Re: [R] png problem
Hi Clément Calenge wrote: Hello, Thanks for the fast reply. Paul Murrell wrote: Hi Clément Calenge wrote: Dear R-users, I have a small problem with the function png(), when used with the argument colortype=pseudo.cube. png(toto.png, colortype=pseudo.cube) image(matrix(rnorm(1), 100, 100)) dev.off() R is blocked at the last command (R does not print any prompt after the last command). Nothing is written in the file (Gimp indicates that the file is corrupted). Did you wait long enough? This example took a little while to complete for me (may need someone more familiar with the code to tell us why it is so slow). You're right, it took 45 minutes for me. However, since I need to use this code to build a Sweave vignette, I cannot use it too often (I have about thirty files to create, this would take about 20 hours to build the vignette !). I also need the colortype argument (some graphics cards do not allow the compilation of the vignette without). Does anyone knows how to speed up the process ? Wow! It didn't take that long for me (maybe a minute or two). A possibly useful observation in case anyone else takes a look at this before me: when I debugged it and ctrl-C'ed to interrupt every now and then, the interrupt always happened inside a call to XQueryColor (in bitgp(), in devX11.c), so that may be the slow part. Paul Paul However, png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() works fine. I tried: options(X11colortype = pseudo.cube) png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() But, here again, R is blocked. I tried to replace dev.off() by graphics.off(), but this does not resolve the problem. The problem does not occurs when the function X11() is used instead of the function png(). I searched through the mail archive, the FAQ, on google, but I did not found any solution to this problem. On the help page on the function png(), it is indicated that The colour handling will be that of the 'X11' device in use. I never used these functions before, but maybe png() is not suitable with colortype=pseudo.cube ? Can you tell me where I have missed something ? Thanks in Advance, Clément Calenge. version _ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major1 minor9.1 year 2004 month06 day 21 language R [[alternative HTML version deleted]] __ [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 -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 [EMAIL PROTECTED] http://www.stat.auckland.ac.nz/~paul/ == UMR CNRS 5558 - Equipe Ecologie Statistique Laboratoire de Biométrie et Biologie Evolutive Université Claude Bernard Lyon 1 43, Boulevard du 11 novembre 1918 69622 Villeurbanne Cedex FRANCE tel. (+33) 04.72.43.27.57 fax. (+33) 04.72.43.13.88 -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 [EMAIL PROTECTED] http://www.stat.auckland.ac.nz/~paul/ __ [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
[R] png problem
Dear R-users, I have a small problem with the function png(), when used with the argument colortype=pseudo.cube. png(toto.png, colortype=pseudo.cube) image(matrix(rnorm(1), 100, 100)) dev.off() R is blocked at the last command (R does not print any prompt after the last command). Nothing is written in the file (Gimp indicates that the file is corrupted). However, png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() works fine. I tried: options(X11colortype = pseudo.cube) png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() But, here again, R is blocked. I tried to replace dev.off() by graphics.off(), but this does not resolve the problem. The problem does not occurs when the function X11() is used instead of the function png(). I searched through the mail archive, the FAQ, on google, but I did not found any solution to this problem. On the help page on the function png(), it is indicated that The colour handling will be that of the 'X11' device in use. I never used these functions before, but maybe png() is not suitable with colortype=pseudo.cube ? Can you tell me where I have missed something ? Thanks in Advance, Clément Calenge. version _ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major1 minor9.1 year 2004 month06 day 21 language R [[alternative HTML version deleted]] __ [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
Re: [R] png problem
Hi Clément Calenge wrote: Dear R-users, I have a small problem with the function png(), when used with the argument colortype=pseudo.cube. png(toto.png, colortype=pseudo.cube) image(matrix(rnorm(1), 100, 100)) dev.off() R is blocked at the last command (R does not print any prompt after the last command). Nothing is written in the file (Gimp indicates that the file is corrupted). Did you wait long enough? This example took a little while to complete for me (may need someone more familiar with the code to tell us why it is so slow). Paul However, png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() works fine. I tried: options(X11colortype = pseudo.cube) png(toto.png) image(matrix(rnorm(1), 100, 100)) dev.off() But, here again, R is blocked. I tried to replace dev.off() by graphics.off(), but this does not resolve the problem. The problem does not occurs when the function X11() is used instead of the function png(). I searched through the mail archive, the FAQ, on google, but I did not found any solution to this problem. On the help page on the function png(), it is indicated that The colour handling will be that of the 'X11' device in use. I never used these functions before, but maybe png() is not suitable with colortype=pseudo.cube ? Can you tell me where I have missed something ? Thanks in Advance, Clément Calenge. version _ platform sparc-sun-solaris2.9 arch sparc os solaris2.9 system sparc, solaris2.9 status major1 minor9.1 year 2004 month06 day 21 language R [[alternative HTML version deleted]] __ [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 -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 [EMAIL PROTECTED] http://www.stat.auckland.ac.nz/~paul/ __ [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
[R] PNG Problem on Windows 98
Thank you for the reply, i tried it with the devel version 1090 (18.02.2004) but it is still the same problem. Is there any other solution. As said before it works on 1 Windows 98 Computer but not on the other's. I can't change the operating system of the computers. Which files of windows could i check? Thank's again. Johannes __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] PNG Problem on Windows 98
Dear all, with the new version of R it is normally no problem to produce very fast graphics in the png format. In the office i want to work with R - Windows 98 is used. There are french versions and english versions of Windows 98 second edition. The png graphics are only on one computer correct. On the other computers - the x-axis labels, the legend text and the mtext (on the bottom) is missing. Attached are simple example files one in jpg (which is ok) and one in png format. produced with: png(test3.png); plot(1:100); mtext(c(aaa,bbb),c(1,2),c(4,1)); legend(50,50,); dev.off() for jpeg with jpeg(..) Any idea where the difference in the installation could be, like missing files ore necesarry updates for the windows system? Thank you very much in advance for any help. Johannes__ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] PNG Problem on Windows 98
For clarification to my first email (PNG Problem on Windows 98 ), i'm using R 1.8.1 .with the new version of R it is normally no problem to produce very fast graphics in the png format. In the office i want to work with R - Windows 98 is used. There are french versions and english versions of Windows 98 second edition. The png graphics are only on one computer correct. On the other computers - the x-axis labels, the legend text and the mtext (on the bottom) is missing. Johannes __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PNG Problem on Windows 98
On Wed, 18 Feb 2004 14:34:40 +0100 (MET), Johannes Schnitzler [EMAIL PROTECTED] wrote : The png graphics are only on one computer correct. On the other computers - the x-axis labels, the legend text and the mtext (on the bottom) is missing. Attached are simple example files one in jpg (which is ok) and one in png format. I don't have access to a Win98 machine to test any more. However, I notice that I've been doing builds with an out of date version of the PNG library (version 1.2.0). I've just downloaded 1.2.5, and am building r-devel with it. Could you download r-devel from CRAN tomorrow, and see if this bug is fixed? (I'll upload it today, but it won't be visible until tomorrow.) You should look in http://cran.r-project.org/bin/windows/base/rdevel.html to find the download. Make sure it is dated Feb 18 or later. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html