[R] Histogram not plotting correct breaks

burgundy sauburn at yahoo.com
Tue Apr 27 04:04:15 CEST 2010


I'm using the hist function to plot the frequency of 21 variables, but it
keeps starting the x-axis from 0 and adding variables 1 and 2 together (all
other vairables have the correct frequencies). I suspect it adds 1 and 2
together so that 0 can fit in with demarcations at intervals of 5. Using
"xlim=c(1,21)" to specify that i don't want to include 0 and using the
"breaks" command to specify 21 breaks doesn't help. Any advice?
Thank you!!
View this message in context: http://r.789695.n4.nabble.com/Histogram-not-plotting-correct-breaks-tp2066057p2066057.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list