Many thanks for your response. In fact, latticeExtra and ggplot2 both state they work with "layers",
but essentially this is nothing more than sequentially adding graphical output to an existing device.
But given that PDF can include layers since version 1.5 it would be interesting to be able to divert
output to different layers inside a PDF structure.
Am 20.07.2012 13:48, schrieb Prof Brian Ripley:
> On 20/07/12 12:07, Christoph Scherber wrote:
>> Dear all,
>> Is it possible to create a pdf file with layers using the pdf() device in R?
> No. Is it possible to specify layers in the R graphics language or any
> device? (From what I understand by 'layers', no.)
> The author of pdf()
>> Many thanks for your help!
>> (using R 2.15.1 on Windows 7 64-Bit)
PD Dr Christoph Scherber
Georg-August University Goettingen
Department of Crop Science
phone 0049 (0)551 39 8807
fax 0049 (0)551 39 8806
Where the layer with the highest index is [on top / in the foreground] (0 is 'behind' 1 is 'behind' 2…).
This works as intended with v2.16.0 - it also updates the regression tests. It doesn't seem to want to update the regression tests on v3.0.0, but everything else should work alright.
The regression tests fail after this update because I also patched the placement of the MediaBox attribute (it's typically found in the page dictionary, not in the pages tree) because I'd never seen it implemented as inheritable. I should probably just take that out - then it'd work everywhere.
Anyway - here's this. What should I do with it now - does anyone think this is worth more of my time?