[R] Is there a plotmath symbol \mapsto?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Dec 12 14:32:01 CET 2014
The only symbols plotmath has access to are those in the Adobe Symbol
encoding. You can display all of those using the example at the bottom
of ?points, as ?plotmath did tell you. (So it was a rather rich asking
for an example.)
It also tells you that on some devices/platforms you can use Unicode
escapes.
Now TeX (not LaTeX) does not define exactly which glyph \mapsto should
output, but Unicode \u21A6 is often called 'mapsto' (how Unicode glyphs
are rendered is font-specific, of course). That works for me with
cairo-based devices on Linux; however on my Mac that glyph is not in the
standard fonts for Quartz-based devices.
On 12/12/2014 03:38, Marius Hofert wrote:
> Hi,
>
> Is there a plotmath symbol like LaTeX's \mapsto?
> I need this comparably often, for example if you want to plot a
> two-place function in one variable (and thus would like to have
> ylab="t \mapsto f(t,s)", for example). If there is such a symbol, I'd
> be great to have it as an example on ?plotmath.
>
> Thanks & cheers,
>
> Marius
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK
More information about the R-help
mailing list