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

Simon Urbanek simon.urbanek at r-project.org
Tue Sep 7 23:23:57 CEST 2010


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



More information about the R-devel mailing list