Skip to content
Prev 206239 / 398503 Next

Ask for histogram

If I do

    b <- rnorm(4332)
    hist(b,probability=T,breaks=30,col='lightblue',ylim=c(0,1))
    rug(b)

The plot looks entirely reasonable.

As far as being different from SAS, perhaps SAS and R use different 
breakpoints, that is, different boundaries between the histogram bars.

-Don
At 11:58 AM -0600 1/13/10, Yi Du wrote: