Thanks to both of you. I noted that my example was over-simplified. Looks
like I need to correct the environment when nested in a function, but I have
to catch the last bus now.

Dieter


plotExp = function(what) {
  plot.new()
  lab =expression(paste("Estimated ", t[50]," from tgv"))
  text(0.5,0.5,lab)
  # Should look the same as above. Looks like I need a substitute....
  lab =bquote(paste("Estimated ", t[50]," from ",.(what))) ##<<need
environment 
  text(0.5,0.2,lab)
}
plotExp(what)

-- 
View this message in context: 
http://r.789695.n4.nabble.com/How-to-plot-an-expression-label-with-variable-text-tp2341465p2341499.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to