Re: [R] substitute in graphics - Uwe's help desk

2008-05-11 Thread Gustave Lefou
Hello, I still have my problem. I couldn't make Uwe Ligges's example work. I wonder why :-( The following doesn't work : param.list=list(mu1=0,mu2=0,s1=3,s2=2,s3=2,s4=4) plot(1:8,type=n) text(8,3,adj=1,labels=substitute(with * mu == bgroup((,atop(mu1,mu2),)) * , * Sigma[x] ==

Re: [R] substitute in graphics - Uwe's help desk

2008-05-11 Thread Uwe Ligges
Gustave Lefou wrote: Hello, I still have my problem. I couldn't make Uwe Ligges's example work. I wonder why :-( The following doesn't work : param.list=list(mu1=0,mu2=0,s1=3,s2=2,s3=2,s4=4) plot(1:8,type=n) text(8,3,adj=1,labels=substitute(with * mu == bgroup((,atop(mu1,mu2),)) * , *

Re: [R] substitute in graphics - Uwe's help desk

2008-05-10 Thread Gustave Lefou
Thank to both of you. I found an interesting document by Uwe Ligges in Rnews December 2002 (Vol 2/3) The following seems encouraging x=seq(1,180,by=1) beta=10 eta=5 plot(x,log(x),type=p,xlab=x,ylab=h(x),main=substitute(Failure rate * eta==myeta * , * beta ,list(myeta=eta,mybeta=beta)) ) but