[R] "less than or equal to" glyph

Joshua Wiley jwiley.psych at gmail.com
Sun Dec 5 21:30:23 CET 2010


Hi,

I suspect this has to do with your locale, as it seems to work on my
system.  Take a look at:

Sys.getlocale() # see yours
?Sys.setlocale # documentation

If you're are talking about something to add to a graph (e.g., in the
title or labelling a point) try:

sd_label <- substitute(LSD~(P <= 0.05) == n, list(n = 5))
plot(1:10, main = sd_label)

HTH,

Josh

On Sun, Dec 5, 2010 at 11:25 AM, romzero <romzero at yahoo.it> wrote:
>
> If i insert \u2264 inside the text, like this
>
> lsd_label <- "LSD (P \u2264 0.05) = "
>
> the result is
>
> "LSD (P = 0.05) = "
>
> instead
>
> "LSD (P ≤ 0.05) = "
>
> how can i solve this problem?
>
> Thanks.
> --
> View this message in context: http://r.789695.n4.nabble.com/less-than-or-equal-to-glyph-tp3073557p3073557.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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