Displaying 1 result from an estimated 1 matches for "rih".
Did you mean:
rh
2006 Sep 22
1
Variable as color in a barplot
Dear wise ones,
I have a problem assigning different colors to bars in a barplot.
The data I'm using is the following dataframe (truncated) :
> L0
r n p t
[...]
18 19 1 1 RFM
19 20 1 1 RFM
20 21 2 1 RFM
21 23 6 1 RIH
22 24 2 1 ROC
23 25 1 1 ROC
24 26 1 1 ROC
25 27 2 1 ROC
26 28 2 1 RFT
27 29 1 1 RFT
28 30 2 1 RFT
29 31 1 1 ROH
[...]
My barplot should display ascending bars according to L0$n. Their width
depends on L0$p, which can be greater than 1. Last, I want a different
color for each of t...