On Sat, 30 Oct 1999, Kin Cheung wrote:
>
>
> Dear S+ users,
>
> I am trying to produce a histogram of my data with a rescale
> of the y-axis to a probability density instead of a frequency count.
> The code that I used is "hist(x,prob=T)" and x is my data
> given below. The problem with this histogram is the y-axis
> is not from 0 to 1 as I expect it should be. The y-axis is labeling
> from 0 to 5 and this is not the frequency count neither.
> I think it's something about this particular data that is
> causing the problem because I tried the same command
> with other data set and it worked perfectly fine.
> I am running splus 2000 in window 95. Any helps
> to make this particular data to give the y-axis from 0 to 1
> from anyone would be very much appreciated.
>
> Kin
a histogram, or in general a density does not have to be bounded
by 1, the total area has to be 1. Consider for example the normal
with small standard deviation:
> dnorm(0,0,.001)
[1] 398.9423
albyn
------------------------------------------------------------------
http://www.reed.edu/~jones Albyn Jones jones@reed.edu
Reed College, Portland OR 97202 (503)-771-1112 x7418
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|