xyListFromGrob {gridGeometry} | R Documentation |
Generate Coordinates from Grobs
Description
This function generates a set of coordinates (a list of (x,y) lists) from a grob.
Usage
xyListFromGrob(x, op = "union", closed = TRUE, ...)
Arguments
x |
A grob. |
op |
A character value describing the operation to be used if
|
closed |
A logical value indicating whether we coordinates describing a closed shape or an open shape from. |
... |
Arguments passed on to |
Value
The result is a list of lists, each with components x
and y
.
Author(s)
Paul Murrell
See Also
Examples
r <- rectGrob(x=1/3, y=1/3, width=.4, height=.4)
xyListFromGrob(r)
[Package gridGeometry version 0.3-0 Index]