[R] xlab not displayed when 'expression' is used

Thomas Lumley thomas at biostat.washington.edu
Mon Jul 3 17:59:13 CEST 2000


On Mon, 3 Jul 2000, Margaret Riordan wrote:

> Hi all,
> When using the function expression to label the axis of a plot. I found
> that it labeled the
> y-axis correctly but left no label on the x-axis.
> 
> The command I'm using is as follows
>     plot(x,y,xlab=expression(v[junc]),ylab=expression(c[junc]))
> 


It's a bug in the C code. This is the third report of it. It's fixed in
R-patched, but on Windows you may prefer to wait for R1.1.1 rather than
compiling yourself.  

A possible work-around is to use mtext() to write the label.


	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle


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