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 bp_30048773
> [1,]          31          48          30          14          23
> [2,]          20          28          44          22          45
> [3,]          49          17          29          10          31
> [4,]          55          27          46          30          39
>
>
>
>
> Using this table in my barplot i want to color each segment with a single
> color. So, for 5 segments (with 4 bars) i want to use 5 different colors.
> Would you please tell me the way of solving this problem.
>
> Thank you.
> Mauluda
>
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to