[R] help with histogram

About this list Date view Thread view Subject view Author view Attachment view

From: Martin Olivier (martinol@ensam.inra.fr)
Date: Fri 07 May 2004 - 22:40:17 EST


Message-id: <409B83B1.2050400@ensam.inra.fr>

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST