Dear HelpeRs,
I would like to do sg similar to:
plot(c(0,100), c(0,100), xaxs="i", yaxs="i", type="n")
txt <- paste("a =", a, "%\n b =", b, " km2", sep="")
text(95, 95, txt, adj=c(1,1))
just with the "km2" formatted with 2 in a superscript.
I thought
txt <- substitute("a = "*a*" %\n b ="*b*" km
Perhaps:
txt <- list(A=bquote(a == .(a)~'%'), B=bquote(b==.(b)~km^2))
plot(c(0,100), c(0,100), xaxs="i", yaxs="i", type="n")
text(95-cumsum(strheight(txt)), 95-cumsum(strheight(txt)), parse(text=txt))
On 21/02/2008, Bálint Czúcz <[EMAIL PROTECTED]> wrote:
> Dear HelpeRs,
>
> I would like to do
2 matches
Mail list logo