I am sure this is trivial, but I cannot solve it.

I make a histogram.  There are 5 categories "1",...,"5" and 80 values and
the histogram does not evenly space the bars.

Bars "1" and "2" have no space between them and the rest are evenly spaced.

How can I get all bars evenly spaced?

The code:

> Q5
 [1] "4" "4" "4" "5" "2" "4" "5" "3" "4" "5" "3" "4" "3" "5" "2" "4" "5" "5"
"4"
[20] "3" "1" "4" "5" "5" "4" "3" "1" "5" "4" "3" "5" "3" "3" "5" "5" "5" "5"
"4"
[39] "4" "5" "1" "1" "5" "4" "4" "4" "1" "4" "4" "5" "5" "2" "4" "5" "4" "3"
"4"
[58] "5" "1" "2" "1" "5" "4" "5" "5" "1" "4" "1" "4" "5" "1" "4" "5" "5" "4"
"5"
[77] "5" "4" "4" "3"
> hist(as.numeric(Q5),  density=30, main=strwrap(S5, width=60), axes=FALSE)
> axis(side=1, labels=c("Disagree", "2", "Not Sure", "4", "Strongly Agree"),
at=c(1, 2, 3, 4, 5))
> axis(side=2)

cheers
Worik

	[[alternative HTML version deleted]]

