[R] Expressions in factor labels on postscript plots

From: kyselad <kyselad_at_hotmail.com>
Date: Thu, 3 Jan 2008 15:29:42 -0800 (PST)

I'm trying to put Greek letters in factor labels on a boxplot. Using the expression() format works great in axis labels, but seems not to cooperate when applied to factor labels. More precisely, I'm assigning the labels from a factor variable using:

var.order <- ordered(var, levels = c("A", "B"), labels=c(C, D) )

Then I create a boxplot with postscript output. If I assign C and D as quoted text strings, they show up fine as regular text. When I try expression() for C or D, it chokes.

Any ideas here? As a potential complication, I need mixed Greek and non-Greek characters in the labels. Of course, that's easy enough if I can get expression() working for me.

Thanks in advance for any suggestions.

Best,
Dave

-- 
View this message in context: http://www.nabble.com/Expressions-in-factor-labels-on-postscript-plots-tp14607806p14607806.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.
Received on Fri 04 Jan 2008 - 07:54:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Jan 2008 - 10:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive