[R] Constructing titles from list of expressions

Winfried Theis theis at statistik.uni-dortmund.de
Thu Aug 8 08:16:44 CEST 2002


Dear Thomas,

thanks a lot for this detailed reply! I think this is really a good lesson in
advanced R-programming! ;-)

On 07-Aug-02 Thomas Lumley wrote:
[Snip]
> In your example you wanted b and c to be elements of a vector.  They
> actually have to be elements of a list
> 
>> c(quote(beta),quote(gamma^3))
> [[1]]
> beta
> 
> [[2]]
> gamma^3
> 
> So
>  expr1<-quote(alpha)
>  expr2<-c( quote(beta), quote(gamma^3))
>  plot(1:10,main=substitute("Estimated "*a*" for "*b*" vs."*c,
>         list(a=expr1,b=expr2[[1]],c=expr2[[2]])))
So, if I had been true to my subject and not exchanged the "list" by a "vector",
things should have worked out correctly at some point of my tests...

Thank you again,

Winfried
---------------------------------------------------------------------
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 08-Aug-02

Dipl.-Math. Winfried Theis
SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund
Tel.: +49-231-755-5903 FAX: +49-231-755-4387
----------------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list