[R] How would I analyse data like this?

Thomas W Blackwell tblackw at umich.edu
Wed Mar 19 19:14:19 CET 2003

> ... the graph is too wide ... (from hist()).

Ah, yes.

Try setting parameter  xlim=c(0,1200)  in the call to hist().

If that doesn't work, then catch the return value from hist(),
and re-plot using barplot().  For example:

temp <- hist(data[[5]], breaks=c(50*(seq(11)-1), 1000, max(data[[5]])))
barplot(temp$counts, xlim=c(0,600))

-  tom blackwell  -  u michigan medical school  -  ann arbor  -

More information about the R-help mailing list