Re: [R] converting strings to expressions

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Thu 14 Sep 2006 - 19:54:47 GMT


sapply(estr, FUN=function(x) parse(text=x))

and it does print the greek letter in the xlab.

xyplot(1:10 ~ 1:10,

       scales = list(x = list(at = c(3, 6),
                     labels = sapply(estr, FUN=function(x) parse(text=x)))))

Rich



R-help@stat.math.ethz.ch 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 Sep 15 06:02:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 14 Sep 2006 - 20:30:08 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.