[R] prime in expression in plot

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 10 16:06:05 CET 2007


Two possibilities are ' (which is the usual way to write \prime in TeX) 
and minute (which is the nearest character in the Adobe symbol font that 
plotmath uses).  TeX has its own symbol fonts, and most R devices are 
based rather on the Adobe one.

On Wed, 10 Jan 2007, Thomas Steiner wrote:

> I want to write something like (LaTeX style)
> b_{norm}=\frac{F\prime(0)}{R\prime(0)}
>
> how do I add the "prime" (first derivative) to a R-plot? The help of
> "plotmath" just talks about "partialdiff". Can you complete this
> command?
>
> text( 30,0.05,labels=expression(b[plain("norm")]==frac(F(0),R(0))) )
>
> Thanks,
> Thomas

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list