Skip to content
Back to formatted view

Raw Message

Message-ID: <4B5350AC.5030501@statistik.tu-dortmund.de>
Date: 2010-01-17T18:02:20Z
From: Uwe Ligges
Subject: plotting Formulas with greek letters and variable values (expression, substitute, paste, ...)
In-Reply-To: <1263750469755-1016112.post@n4.nabble.com>

On 17.01.2010 18:47, rrookie1982 wrote:
> text(0,7.5,substitute(expression(paste(symbol("t"),"(A) = ",c1 +
> lg(A^c2),sep="")),list(c1=0,456,c2=-0.123)),pos=4)
>

It is much easier, just write the formula down in R syntax and 
substitute the relevant variables as in:

text(0, 7.5, substitute(tau(A) == a*lg(A^b), list(a=1.234, b=-0.567)))

Best,
Uwe Ligges