Displaying 1 result from an estimated 1 matches for "lightorange".
2006 Sep 22
1
Variable as color in a barplot
...ant a different
color for each of the five values of L0$t.
I use the following array to assign a colour for each type given in
L0$t :
> coul <- array()
> coul['ROC'] <- 'khaki1'
> coul['RFM'] <- 'palegreen'
> coul['RFT'] <- 'lightorange'
> coul['RIH'] <- 'blue'
> coul['ROH'] <- 'lightblue'
And here's the barplot command I'm using :
> barplot(sort(L0$n), ylim=c(0,10), width=L0$p[order(L0$n)],
col=coul[L0$t[order(L0$n)]], main="Nombre de genres", sub="Li...