grobToDev: Convert a grob to device calls

View source: R/griddev.R

grobToDevR Documentation

Convert a grob to device calls


This function is used to make calls to a device to draw a grob. It is generic so new grob classes can write their own methods.


grobToDev(x, dev)



A grob.


A graphics device.


This function is not called directly by the user. It is exposed so that new grob classes can easily write their own methods which call existing methods for standard grobs.

The difference between this function and primToDev() is that this one takes care of setting up coordinate systems based on the grid viewports so that SVG output is positioned correctly, then it calls primToDev() to produce the actual SVG elements.


Paul Murrell

gridSVG documentation built on March 18, 2022, 7:13 p.m.

Related to grobToDev in gridSVG...