[R] limit digits in text()?
wsimpson at gcal.ac.uk
Thu Jun 10 11:54:59 CEST 1999
I am labelling the axes of a persp() plot manually using text(). For
one spot in the plot I use:
The problem is that the label is printed as 1.6456330961.
I would like 1.6.
I tried options(digits=2) and str(digits.d=2)--no effect. (I don't like
these methods anyway since I just want to modify how the label in the plot
is printed; I want to print all the digits otherwise.)
How should I do it? Is the only way to first set options(digits=2), then
compute dprime, then do text(), then when done reset options(digits=10)?
Thanks very much for any help.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help