[R] use of bquote

Richard M. Heiberger rmh at temple.edu
Fri Nov 22 06:07:15 CET 2013


When I use run this expression

a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ b==.(b))))

the subtitle contains three copies of the "a = 2  b = 3" phrase.
Why does it do that?  How do I tell it to give me only one copy?

Rich



More information about the R-help mailing list