<br><br><div><span class="gmail_quote">2007/2/1, Thomas Friedrichsmeier <<a href="mailto:thomas.friedrichsmeier@ruhr-uni-bochum.de">thomas.friedrichsmeier@ruhr-uni-bochum.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wednesday 31 January 2007 20:18, you wrote:<br>> I did something a little bit different, however the dim() was what needed I<br>> think. Here is the code<br>> col=rainbow( if(is.matrix(rk.temp.x)) dim(rk.temp.x
) else rk.temp.x)<br><br>I think it should rather be<br><br>col=rainbow( if(is.matrix(rk.temp.x)) dim(rk.temp.x) else 1)<br><br>(either that or with length)<br><br>col=rainbow( if(is.matrix(rk.temp.x)) dim(rk.temp.x) else length (
rk.temp.x))<br><br>See, e.g.:<br>x <- c (3:10)<br><br>In this case your approach would generate three different colors, since<br>x[1] == 3<br><br>There should either be only one color in this case, or eight. Personally, I
<br>think eight would be nicer (as the legend is pretty meaningless, if there is<br>only one color, e.g. "x <- c (a=3, b=4, c=5, d=6)"). On the other hand, that<br>would be more consistent with the default gray coloring.
</blockquote><div><br>Thanks. Yes you 're totally right. I am totally in between the two solutions. I like the consistency with gray barplot using the 1 option, specially when using preview. However, using length it is really impressive. So for the time I agree with your opinion of length(). This is what i commit. If there is another opinion, please say.
<br><br>Regards, <br>Ilias<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Wichever you like best, but currently it's still rather erratic.
<br><br>Regards<br>Thomas<br><br>-------------------------------------------------------------------------<br>Using Tomcat but need to do more? Need to support web services, security?<br>Get stuff done quickly with pre-integrated technology to make your job easier.
<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
</a><br>_______________________________________________<br>RKWard-devel mailing list<br><a href="mailto:RKWard-devel@lists.sourceforge.net">RKWard-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/rkward-devel">
https://lists.sourceforge.net/lists/listinfo/rkward-devel</a><br><br><br></blockquote></div><br>