[R] plotmath

Ross Ihaka ihaka at stat.auckland.ac.nz
Wed Feb 19 08:54:06 CET 2003


eac at ma.adfa.edu.au wrote:
> 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?

Here's my attempt

     expression(log(-log(hat(italic(R)))))

Unlike TeX, if you want italics you have to ask for it.

(If you are attempting anthing serious, the TeX package psfrag  is worth 
a look.)


-- 
Ross Ihaka                         Email:  ihaka at stat.auckland.ac.nz
Department of Statistics           Phone:  (64-9) 373-7599 x 85054
University of Auckland             Fax:    (64-9) 373-7018
Private Bag 92019, Auckland
New Zealand




More information about the R-help mailing list