[R] expression at labels in contour function

From: Rogerio Porto <rdporto1_at_gmail.com>
Date: Thu, 10 Mar 2011 11:46:13 -0300


I'm stuck with the following code.

p <- 0:100/100
a <- 0:200/100
beta <- matrix(a + p%x%(1-a), nrow=length(a), ncol=length(p)) lb <- c(expression(beta==0), expression(beta==0.2), expression(beta==0.4),

expression(beta==0.6), expression(beta==0.8), expression(beta==1),
expression(beta==1.2), expression(beta==1.4), expression(beta==1.6),

contour(a, p, beta, labcex=1, labels=lb)

Does anybody have an idea on how to make the greek letters appear at the equi-\beta curves?

I'm running R version 2.11.1 on a 32-bit Windows 7 Starter and on a Windows Vista Business without success.

Thanks in advance,


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 Thu 10 Mar 2011 - 14:50:35 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 Thu 10 Mar 2011 - 15:20:19 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