[R] mathematical expressions in axes labels

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Aug 2 19:06:26 CEST 2001



Anne York wrote:
> 
> Here are two expressions that am using as axes labels:
> 
> deln15.lab <- expression(delta^15*N)
> delc13.lab <- expression(delta^13*C)
> 
> #I was pleasantly surprised that the axes labels on the
> #following 2 plots were the same.
> 
> par(mfrow=c(2,2))
> plot(1:10,1:10,xlab=deln15.lab, ylab=delc13.lab)
> matplot(1:10,1:10,xlab=deln15.lab, ylab=delc13.lab)
> 
> #The only difference in the plots (that I noticed)
> #was that matplot did not use
> #the default plotting characters specified
> #in my .First function.
> #
> #plot also appears to be able to use expressions in the title:
> 
> plot(1:10,1:10,xlab=deln15.lab, ylab=delc13.lab, main =
>         expression(alpha~~beta~~gamma~~delta))
> 
> #THis may be machine dependent -- this was run on R1.3.0 on Windows NT 4
> #SP6.


So your problem has nothing to do with the subject?

The behaviour of plotting symbols in matplot() is documented in the
help:

pch: character string or vector of 1-characters or integers for plotting
characters, see points. The first character is the plotting-character
for the first plot, the second for the second, etc. The default is the
digits (1 through 9, 0) then the letters.

So, what is your problem ???

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