Re: [R] Normalized Y-axis for Histogram Density Plot

2009-09-02 Thread Greg Snow
project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Gundala Viswanath > Sent: Tuesday, September 01, 2009 10:17 PM > To: r-h...@stat.math.ethz.ch > Subject: [R] Normalized Y-axis for Histogram Density Plot > > I have the following data which I tried to draw &

[R] Normalized Y-axis for Histogram Density Plot

2009-09-01 Thread Gundala Viswanath
I have the following data which I tried to draw the probability density plot. Here is the code I have: x <- read.table("mydat.txt"); d <- rep(x$V2,times=x$V3); hist(d,probability=T, xlab="FlowSignal"); But why the y-axis range from 0 to 6, instead of 0 to 1? What's the correct way to plot it?