<br><br><div><span class="gmail_quote">2007/1/31, 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 Tuesday 30 January 2007 16:09, I. Soumpasis wrote:<br>> > rainbox (length (rk.temp.x))<br>><br>> I believe you mean rainbow.<br><br>Indeed.<br><br>> I made some research on this. I used VADeaths<br>> data. The results are shown on pdf. The length() does not seem to solve the
<br>> problem but create another as you will see at the attached pdf. The problem<br>> seems to relates to the beside option because with the stacked plots there<br>> is no problem. Any other testing I have done, with any kind of variables
<br>> seems to be right.<br><br>I think the difference between juxtaposed and stacked is simply that barplot<br>will restart coloring at the first color for stacked plots, but not for<br>juxtaposed ones.<br><br>> Can I have some other data were the problem seems to appear? Did anybody
<br>> find any similar problem?<br><br>This one is an example of a problematic matrix:<br>x <- matrix (1:20, nrow=4, ncol=5)<br>Here the first value of x is 1, so only one color will ever be used (in either<br>type of barplot).
<br><br>> Is there any other suggestions of how to fix this?<br><br>I guess the proper solution would be to use either dim (x)[1] or is that is<br>null (for vectors, and factors), use length (x). E.g.:<br><br>rainbow (if (
is.null (dim(rk.temp.x)) length (rk.temp.x) else dim (rk.temp.x)<br>[1])<br><br>Not much time to experiment with it, however. You may have to try some<br>variations in order to get everything right. Also, maybe take a look at
<br>barplot.default to figure out, how they determine the number of gray shades<br>to use.<br><br>> P.S. Something irrelevant but it came to mind printing the output. Is there<br>> a way to skip printing the <a href="file:///home/user/.rkward/rk_out.html">
file:///home/user/.rkward/rk_out.html</a>? Just a<br>> suggestion.<br><br>Could you rephrase? I did not understand, what you mean.</blockquote><div><br>I will take a look on the others. For this part I mean that if you print output you get on the top the address of the document which in this case is
<a href="file:///home/user/.rkward/rk_out.html">file:///home/user/.rkward/rk_out.html</a>. If somebody wants to do a report for a third party he would not like to have info like this on the document. The pdf file I sent or this example I had printed using mozilla browser and I filled this part with black colors. I hope I was more clear.
<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;">Regards<br>Thomas<br><br>-------------------------------------------------------------------------
<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>opinions on IT & business topics through brief surveys - and earn cash
<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</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>