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
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
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
3 matches
Mail list logo