Hi!

Let's suppose the values for the x axis are stored in 'values'.

barplot(values, col=c(rep("Red",3),rep(1,length(values)-8),rep("Blue",5)))

HTH,
Kimmo

vikrant kirjoitti:
> Suppose I need to draw a Grouped bar plot with 100 values on the X axis. Now
> my question is If I need to highlight suppose first three values by some
> color say 'red' and also I need to highlight last 5 datavalues 
> by some color say 'blue' and the rest of the data in between I need not
> display. Is it possible? If yes How?
> Could anyone explain

______________________________________________
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