[R] help with histogram

Martin Olivier martinol at ensam.inra.fr
Fri May 7 14:40:17 CEST 2004


Hi all,

I need some help with the function histogram. Let x be a vector.
The command hist(x,col="blue") gives an histogram for the vector x.
I would like to add some colors in the graphics such that the histogram is
red if abs(x)>1.669 and blue otherwise...and what is the solution if I 
want to
change the  filling instead of the color

Thanks for your help,
Olivier




More information about the R-help mailing list