[R] combining expressions in mathplot
Sebastian P. Luque
spluque at gmail.com
Wed Jun 9 06:29:52 CEST 2010
On Wed, 9 Jun 2010 00:15:19 -0400,
"RICHARD M. HEIBERGER" <rmh at temple.edu> wrote:
> text(5,1, parse(text=paste(deparse(aa[[1]]), deparse(bb[[1]]),
> sep="~"))) text(5,2, parse(text=paste(deparse(aa[[1]]),
> deparse(bb[[1]]), sep="~', '~")))
> Is there a cleaner way of combining the expressions aa and bb to get
> the effect of the last two lines?
How about:
aa <- 0.05; bb <- 0.80
text(5, 1, bquote(alpha==.(aa) ~~ beta==.(bb)))
?plotmath
--
Seb
More information about the R-help
mailing list