[R] Creating a .png with just an expression() in it

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Mar 4 16:29:14 CET 2011



On 04.03.2011 16:12, David Winsemius wrote:
>
> On Mar 4, 2011, at 8:31 AM, Alexx Hardt wrote:
>
>> Hey,
>> I'm trying to create an image file with the results of a regression
>> analysis. In TeX, the line would be something like:
>> $ size = 0.34 + 4.3 var_1 $
>>
>> Can I create a plot window with just this line in it? I tried playing
>> around with plot.new() or dev.new(), but didn't really find something
>> that worked.
>
> plot(NULL, xlim=c(0,1), ylim=c(0,1), ylab="")
> abline(0.34, 4.3)
>

I thought the question was to say

plot.new()
plot.window(xlim=c(0,1), ylim=c(0,1))
text(0.5, 0.5, expression(size == 0.34 + 4.3 * var[1]))

Anyway, this shows that the question was not too precise.

Best,
Uwe Ligges



More information about the R-help mailing list