I have just noticed something strange using barplot
in R. Let y be the vector
> y
[1] 24924006 15310556 11638412 9542834 8696133
Using barplot
on y
I arrive at the vector of midpoints
bp <- barplot(y)
Plotting both bars and midpoints I notice that the bars are not centered .w.r.t. the midpoints...and this is odd; in summary, I use
bp <- barplot(y)
points(bp)
with
as outcome. Could you please help me solving this little puzzle? I would just have bars with centered mid-points. Thanks!