I ran into the same problem - for me, wrapping the axis vector in FORMAT
worked well (see below); it may or may not be elegant but was effective for
your problem I think.

JT



#at <- pretty(xlim)

at <- format(pretty(xlim), digits=2)

# at <- pretty(ylim)

at <- format(pretty(ylim), digits=2)

#---------------------------#

This results in axis labels of . . .

0.0, 0.5, 1.0, 1.5, 2.0.


-- 
View this message in context: 
http://www.nabble.com/how-to-control-significant-digits%28-%29-on-axis-labels-tp23196067p23336221.html
Sent from the R help mailing list archive at Nabble.com.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to