On Sun, 2003-09-07 at 05:23, Philip Rhoades wrote: > Hi people, > > With: > > hist(rnorm(200, 10, 3), breaks=20) > > - how do I centre the ticks below each hist rectangle? > > Thanks, > > Phil. > -- > Philip Rhoades
hist() returns a list of elements, one of which is 'mids', which are the cell centers. Thus, use something like: hist.data <- hist(rnorm(200, 10, 3), breaks=20, axes = FALSE) axis(1, at = hist.data$mids) axis(2) See ?hist for more information. HTH, Marc Schwartz ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
