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

Paul Murrell p.murrell at auckland.ac.nz
Wed Sep 8 03:11:10 CEST 2010


Hi

On 8/09/2010 9:23 a.m., Simon Urbanek wrote:
>
> 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).

PS device does not keep a display list *by default*.  You should be able 
to turn it on via ...

dev.control("enable")

Paul

> 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
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



More information about the R-devel mailing list