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...
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
plot math Q: How to "plot" hat(f') ?
3 messages · Martin Maechler, Peter Dalgaard, Tim Churches
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
As a grateful and delighted user of R and as a subscriber to the R-help mailing list for over a year now, one thing which has amazed me is the the prolific, often instantaneous and seemingly round-the-clock assistance offered by Prof. Brian Ripley. This made me ponder, how does he do it? Surely giving lectures, attending Faculty and College meetings and activities of daily living must sometimes hinder his ability to respond in the wink of an eye? But now his secret is out - details can be found at http://zerospin.com/ripley/index.html With thanks to the entire R-project team, Tim Churches Sydney, Australia -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._