Skip to content
Prev 277661 / 398506 Next

Numerical Format on axis

To add to what David suggests, and since you're new to R, something like
this:

plot(x,y, yaxt='n')
yticks <- pretty(y)
axis(2, at=yticks, labels=sprintf("%1.2f",yticks))

See the help page for par
  ?par
and look for the entry for 'xaxt' to see what the 'yaxt' arg to plot does.