[R] reason for na.last=TRUE in rank

2005-05-19 Thread Alejandro Munoz del Rio
Dear UseRs, Could someone explain to me why the default behaviour of rank() is to assign the largest rank to missing data rank(c(3, 1, NA)) [1] 2 1 3 as opposed to what I would hazard would be the expected 2, 1, NA? Despite consistency being the hobgoblin of little minds, of two closely

[R] subset of documentation for a given recommended package

2004-05-23 Thread Alejandro Munoz del Rio
Dear R-help readers, In R 1.8.1 it was easy to print the documentation for recommended packages: go to the full reference manual (refman.pdf) and print the relevant pages, which were contiguous. With R 1.9.0 some of those packages (e.g. ts) have become part of the stats package, and hence their

[R] assigning colors to barplot when beside=TRUE

2003-12-04 Thread Alejandro Munoz Del Rio
dear list, i am having trouble coloring the bars in a barplot. my data have two groups, which i would like to plot side by side. within each group i want to sort the observations in decreasing order, like a pareto chart. the bar colors would relfect the value of a third variable. below i have

Re: [R] assigning colors to barplot when beside=TRUE

2003-12-04 Thread Alejandro Munoz Del Rio
Quoting Paul Murrell [EMAIL PROTECTED]: I haven't figured out exactly what your code is supposed to produce, but I suspect that you are calculating colv incorrectly. In your example, you get a colv with 5 elements. There are a total of 10 bars plotted (some are zero height because the