s-news
[Top] [All Lists]

[S] bug in histogram ?

To: s-news@wubios.wustl.edu
Subject: [S] bug in histogram ?
From: Kin Cheung <cheung@math.bu.edu>
Date: Sat, 30 Oct 1999 03:52:05 -0400 (EDT)
Sender: owner-s-news@wubios.wustl.edu

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 

x_c(0.17361076,0.13295250,0.01795085,-0.02814518,0.17708794,0.05736046,
0.07345985,0.07914143,0.08713355,-0.01548441,-0.08465689,-0.00990844,
0.16132357,0.09266275,0.16010853,0.14103633,0.16526343,0.08412057,
-0.02855911,0.16880933,0.08137498,0.02293744,0.18137354, -0.01881859,
0.28500314,0.23387299,0.11772692,0.10913201,0.01334307,0.18473108)


-----------------------------------------------------------------------
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

<Prev in Thread] Current Thread [Next in Thread>