[R] Plotmath: suprscript on scalable delimiter?

Rubén Roa rroa at azti.es
Fri Jan 29 13:03:13 CET 2010


ComRades,

How do you put a superscript on a scalable delimiter?
I want to put 'b' as the power of the expression in the following plot:

t <- 1:25
K <- 0.2
y <- ((1-exp(-K*t))/(1-exp(-K*t)*exp(K)))^3
plot(t,y,"l",main="K=0.2, b=3")
text(15,5,expression(bgroup("(",frac(1-e^-Kt,1-e^-Kt*e^K),")")))

Plotmath examples in demo(plotmath) do not include this.
I've tried a few things to no avail and I did an RSiteSearch("superscript delimiter") with zero results.
Thx

Rubén

____________________________________________________________________________________ 

Dr. Rubén Roa-Ureta
AZTI - Tecnalia / Marine Research Unit
Txatxarramendi Ugartea z/g
48395 Sukarrieta (Bizkaia)



More information about the R-help mailing list