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 -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
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:> 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 >-------------- 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-0002.pdf>
Thanks, Yihui!! This works!! Best wishes, Ranjan On Sun, 23 Feb 2014 11:31:35 -0600 Yihui Xie <xie at yihui.name> wrote:> 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: > > 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 > >-- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!