Skip to content

equivalent of $\check Y$ in plotmath

3 messages · Ranjan Maitra, Yihui Xie

#
Hi,

I am trying to put the expression which in LaTeX would be $\check Y$  as
a label on the axis of a plot.

How does one get the \check part of the above to produce a similar
symbol in plotmath in R? I looked around plotmath's help but could not
see this in the documentation.

Many thanks for any suggestions, and best wishes,
Ranjan
#
Whenever plotmath is unable to provide what you want, you can always
go to tikzDevice for native LaTeX support:
http://yihui.name/en/2011/04/produce-authentic-math-formulas-in-r-graphics/
Here is an example:

library(tikzDevice)
tikz('test-math.tex', standAlone = TRUE)
plot(1, main = '$\\check{Y}$')
dev.off()
system('pdflatex test-math.tex')


Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name


On Sat, Feb 22, 2014 at 9:29 PM, Ranjan Maitra
<maitra.mbox.ignored at inbox.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-math.pdf
Type: application/pdf
Size: 20914 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140223/34039d1b/attachment.pdf>
#
Thanks, Yihui!! This works!!

Best wishes,
Ranjan
On Sun, 23 Feb 2014 11:31:35 -0600 Yihui Xie <xie at yihui.name> wrote: