Displaying 1 result from an estimated 1 matches for "cutmf12g3".
2013 Mar 26
3
barplot colors
...e to have one colors per stack, so 4 different colors total.
The problem is that R is only given me 2 colors (the same two for the bottom stack and the same two for the top stack). Any idea how I can do to have 4 colors? (without using ggplot2 preferably)
Here is my code
> w <- matrix(table(cutMF12G3),2,2)
> w
[,1] [,2]
[1,] 8 13
[2,] 8 8
> barplot(w, main="2012", col=c("red", "green", "blue", "pink"))
Thanks in advance for your help.
François
[[alternative HTML version deleted]]