Re: [R] Reverse legend label order in barplot

2011-07-03 Thread peter dalgaard
On Jul 2, 2011, at 02:14 , Marc Schwartz wrote: > > > Alternatively, You can use legend() separately to add the legend to the > barplot in the fashion that you desire. > > Thus: > > barplot(mat) > > legend("topright", legend = rownames(mat), > fill = grey.colors(nrow(mat))) > Yu

Re: [R] Reverse legend label order in barplot

2011-07-01 Thread Marc Schwartz
On Jul 1, 2011, at 6:46 PM, Tom Porteus wrote: > Hi list, > > > > I've thus far not found a solution to my problem and hope someone can help. > I have a data matrix and wish to plot a stacked bar plot using barplot(). > This is simple enough, but I have a problem with the legend labels being in

[R] Reverse legend label order in barplot

2011-07-01 Thread Tom Porteus
Hi list, I've thus far not found a solution to my problem and hope someone can help. I have a data matrix and wish to plot a stacked bar plot using barplot(). This is simple enough, but I have a problem with the legend labels being in the reverse order from what I want. The default appears to