[R] Histogram

livia yn19832 at msn.com
Tue Jun 19 18:00:07 CEST 2007


Hello, I am using the following codes to plot a histogram and density line
for x. For the density line, I just want it to show the two tails, eg, for x
larger than 0.05 ans smaller than -0.05

hist (x, seq(-0.1,0.1,0.01),freq = FALSE)
lines (density(x,bw="SJ"), x> 0.05 & x< (-0.05), col = "red")

But is does not work, can anyone give me some advice?



-- 
View this message in context: http://www.nabble.com/Histogram-tf3947281.html#a11197644
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list