[R] Barplot coloring problem
Hi I'm a new user of R. I've a table like the following. bp_30049913 bp_30049953 bp_30049969 bp_30050044 bp_30048773 [1,] 31 48 30 14 23 [2,] 20 28 44 22 45 [3,] 49 17 29
Re: [R] Barplot coloring problem
Try this: barplot(matrix(sample(5*4, 20), ncol = 5), col = rep(1:5, each = 4), beside = TRUE) On Tue, Oct 5, 2010 at 11:10 AM, Mauluda Akhtar maulud...@yahoo.com wrote: Hi I'm a new user of R. I've a table like the following. bp_30049913 bp_30049953 bp_30049969 bp_30050044