[R] Italicize Greek symbols in axis

Joshua Wiley jwiley.psych at gmail.com
Tue Jun 21 11:43:42 CEST 2011


That is my understanding also.  I recall reading something once by
Paul Murrell (I think) about using a special font set.  If there is a
font containing italic greek symbols, it seems like that should work.
A (very) poor man's option could just be slightly rotating the
symbols:

par(xpd = NA)
plot(1:10)
text(5, 11, expression(mu), srt = -10)
text(5.3, 11, "+")
text(5.6, 11, expression(beta), srt = -10)

if it is for a title, one runs into additional complications with base
graphcis because the "srt" argument only works for text, not mtext(),
which is why I set clipping to the device region instead of just the
plot region.  I would be interested to learn about more elegant/easy
options too.

Josh

On Tue, Jun 21, 2011 at 1:37 AM, Bingzhang Chen
<elanchen2001 at yahoo.com.cn> wrote:
> Hello there,
>
> Is there any way to italicize Greek symbols such as mu in axis? From the help
> files of mathematical anotations: "Note that bold, italic and bolditalic do not
> apply to symbols, and hence not to the Greek symbols such as mu which are
> displayed in the symbol font.  They also do not apply to numeric constants.", it
> seems that it cannot be done.
>
> Thanks,
> Bingzhang Chen
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list