[R] Normal behavior or bug?

Marc Feldesman feldesmanm at pdx.edu
Sat Mar 23 20:07:30 CET 2002


 >selectiris<-sample(1:5, 150, replace=T)
 > hist(selectiris, plot=TRUE) #freq=TRUE, breaks=5, etc all do the same thing
 >truehist(selectiris)

Is the behavior of "hist" in this sample of code correct.  On my system 
(Windows 2K, SP2) the first and second bars are pushed together, while the 
3rd, 4th, and 5th bars are correctly positioned.

The function "truehist" gives the correct representation of the data.

Am I missing an option in hist or is there a bug?

This appears in 1.4.1 as well as the "unstable" version 1.5.0.

platform i386-pc-mingw32
arch     x86
os       Win32
system   x86, Win32
status
major    1
minor    4.1
year     2002
month    01
day      30
language R




=====================
Dr. Marc R. Feldesman
Professor and Chairman
Anthropology Department
Portland State University
1721 SW Broadway
Portland, Oregon 97201
email:  feldesmanm at pdx.edu
phone:  503-725-3081
fax:    503-725-3905
http://web.pdx.edu/~h1mf
PGP Key Available On Request
======================

"Beyond every credibility gap lies a gullibility fill"

Powered by  Latochoerus and Windows 2000, SP1

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list