[R] unexpected breaks in hist
David White
dwhite at ling.ohio-state.edu
Mon May 7 03:39:20 CEST 2001
Hello R-list,
I've been using hist to plot histograms of some data, but I get variable
numbers of bins. I understood from reading the help file that breaks will
set the number of bins. Please correct me if I'm wrong.
I'm plotting measures from subsets of a larger data set. Depending on the
data subset the number of bins varies despite having set breaks to 5 in
all cases.
See commands below. (BTW I'm using R1.2.2 on SunSolaris)
Thanks,
David
hist(allvariances[allvariances$type %in% "ku",3], breaks=5, main="ku
variance histogram")
par(new=FALSE)
hist(allvariances[allvariances$type %in% "ki",3], breaks=5, main="ki
variance histogram")
par(new=FALSE)
hist(allvariances[allvariances$type %in% "tu",3], breaks=5, main="tu
variance histogram")
par(new=FALSE)
hist(allvariances[allvariances$type %in% "ti",3], breaks=5, main="ti
variance histogram")
S. David White
sdavidwhite at bigfoot.com
Columbus, Ohio
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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