From simon.urbanek at r-project.org  Tue Sep  7 23:23:57 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 7 Sep 2010 17:23:57 -0400
Subject: [Rd] what is the best way for an external interface to interact
	with graphics, libraries
In-Reply-To: <1283886460100-2530256.post@n4.nabble.com>
References: <1283883710896-2530208.post@n4.nabble.com>
	<B6FE3EE8-69FD-4E32-90B8-1065F8947026@r-project.org>
	<1283886460100-2530256.post@n4.nabble.com>
Message-ID: <E4390BF3-5D29-49FB-92A3-AF859440FC24@r-project.org>


On Sep 7, 2010, at 3:07 PM, ghostwheel wrote:

> 
> 
> Simon Urbanek wrote:
>> 
>> 
>> I don't know the mechanics of the actual "inserting" in TeXmac but it
>> would be trivial to simply create a copy of the plot as EPS (or whatever
>> is needed) at the time of insertion. See dev.copy2eps() for a function
>> that does exactly that.
>> 
>> 
> 
> Great. It works much better than my recordPlot() hack. But it seems to only
> work for 'screen devices'. I'd like to be able to work remotely without X11.
> Is there any equivalent graphics device that would be copyable with
> dev.copy2eps?  Is there any way to tell R give me whatever you have till now
> in eps? 
> 

No (AFAIR PS devoice does not keep a display list).

However, you can use any other device that uses a display list, e.g. CairoPS from the Cairo package (in fact any of the Cairo devices..).

Cheers,
Simon



[Rd] what is the best way for an external interface to interact with graphics, libraries
Simon Urbanek