[R] Barplots in R
K. Elo
maillists at nic.fi
Fri Jan 15 12:06:35 CET 2010
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
More information about the R-help
mailing list