powered by
This function generates a set of coordinates (a list of (x,y) lists) from a grob.
xyListFromGrob(x, op = "union", closed = TRUE, ...)
The result is a list of lists, each with components x and y.
x
y
A grob.
A character value describing the operation to be used if x needs to be collapsed to a single shape. One of "intersection", "minus", "union", or "xor".
"intersection"
"minus"
"union"
"xor"
A logical value indicating whether we coordinates describing a closed shape or an open shape from.
Arguments passed on to polyclip.
polyclip
Paul Murrell
r <- rectGrob(x=1/3, y=1/3, width=.4, height=.4) xyListFromGrob(r)
Run the code above in your browser using DataLab