Skip to content
Prev 308492 / 398506 Next

Centering labels on X-axis

On 10/20/2012 01:39 AM, YAddo wrote:
Hi YAddo,
Perhaps the most common problem with getting the positions of axis 
labels right occurs with barplots. The bars in the standard "barplot" 
function are not centered on integer values, but the centers are 
returned from the function:

barpos<-barplot(...)
axis(1,at=barpos,...)

Is this the problem you are having?

Jim