[R] plotmath

Henrik Bengtsson hb at maths.lth.se
Wed Feb 19 08:45:09 CET 2003


Is this an example of what you want?

xlab <- expression(log(-log(hat(R))))
plot(1, xlab=xlab)

Henrik Bengtsson
Mathematical Statistics, Lund University, Sweden

> -----Original Message-----
> From: r-help-admin at stat.math.ethz.ch 
> [mailto:r-help-admin at stat.math.ethz.ch] On Behalf Of 
> eac at ma.adfa.edu.au
> Sent: den 19 februari 2003 20:26
> To: R Help list
> Cc: eac at ma.adfa.edu.au
> Subject: [R] plotmath
> 
> 
> There's something (probably a lot) missing in my 
> understanding of plotmath. The LaTeX code for what I'm trying 
> to produce is
> 
> \log(-\log(\hat R))
> 
> My (probably hopeless) attempt at it uses nested group()s:
> 
> expression(plain(log) * group("(", -plain(log)*group("(", 
> \hat(R), ")"),
> ")"))
> 
> Can anyone do it right for me, please?
> 
> Thanks,
> 	Ted.
> 
> Dr E.A. Catchpole
>  ----------------------------------
> | Associate Professor              |      
> ------------------------------
> | School of Maths & Stats          |     |  Hon Senior 
> Research Fellow  |
> | University of New South Wales at |     |  Institute of 
> Maths & Stats  |
> | Australian Defence Force Academy | and |  University of 
> Kent          |
> | Canberra, ACT 2600, Australia    |     |  Canterbury CT2 
> 7NF, England |
> | e-catchpole at adfa.edu.au          |     |  
> E.A.Catchpole at ukc.ac.uk     |
> | www.ma.adfa.edu.au/~eac          |      
> ------------------------------
> | fax: +61 2 6268 8886		   |
> | ph:  +61 2 6268 8895             |
>  ----------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> http://www.stat.math.ethz.ch/mailman/listinfo/> r-help
> 
>




More information about the R-help mailing list