[R] using text() to write into left margin

Terry J. Westley twestley at buffalo.veridian.com
Fri May 7 21:42:34 CEST 1999


In version 0.63.0 for Win95, I can use text() to
write into the left margin (to the left of the axis)
as follows:

> plot(0:10,0:10,pch="+")
> text(c(1,0.5,0,-0.5,-1),1,"O")

I see 5 "O" symbols at the expected position, two of
which are left of the left axis.

However, in version 0.64.0 for Solaris 2.5.1 on a
Sparc/Ultra2, I only see three "O" symbols.  Those
that are to the left of the axis do not appear.

Is this an expected result?

I am using text() instead of mtext() because I want
the labels to appear at Y co-ordinate positions as
normal text, not rotated 90 deg.  These are text
labels rather than numbers, so I'm suppressing the
left axis and using text() to write the labels.

Even if I can get text() to work as I've come to
expect on the PC, maybe there's a better way I've
missed?

--
Terry J. Westley, Principal Engineer
Veridian Engineering, Calspan Operations
twestley at buffalo.veridian.com   http://www.veridian.com/
-------------------------------------------------------
Author of TASH, an Ada binding to Tcl/Tk.
Visit the TASH web site at http://tash.calspan.com.
-------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list