Skip to content
Back to formatted view

Raw Message

Message-ID: <x2elso1diu.fsf@blueberry.kubism.ku.dk>
Date: 2001-06-13T17:43:37Z
From: Peter Dalgaard
Subject: plot math Q:  How to "plot"  hat(f') ?
In-Reply-To: Martin Maechler's message of "Wed, 13 Jun 2001 18:13:17 +0200"

Martin Maechler <maechler at stat.math.ethz.ch> writes:

> In nonparametric regression and density estimation, something like
>  \hat{f'}(x)  [LaTeX]  is very natural.
> In all S dialects,
>    hat(f')
> is invalid syntax, and hence one cannot use something like
>    plot(1, main = expression(hat(f')))
> 
> I can say something like
> 
>    plot(1, main = expression(widehat(paste(f, "'"))), cex.main = 3)
> 
> but that (the R code, not the plot result) is a bit ugly.
> Nicer solutions are welcome...

well...

quote(widehat("f'"))
quote(widehat(f * "'"))
quote(widehat(f * minutes))

(I think that it is \widehat{f'} in LaTeX too, unless you mean
\hat{f}') 

quote(widehat(prime(f))) would be logical if you could push Paul to
implement prime(), but I'm not sure it is actually prettier.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._