xyListFromGrob | R Documentation |
This function generates a set of coordinates (a list of (x,y) lists) from a grob.
xyListFromGrob(x, op = if (closed) "union" else "flatten",
closed = isClosedShape(x), ...)
x |
A grob. |
op |
A character value describing the operation to be used if
Can also be |
closed |
A logical value indicating whether we coordinates describing a closed shape or an open shape from. |
... |
Arguments passed on to |
The result is a list of lists, each with components x
and y
.
Paul Murrell
polyclip
r <- rectGrob(x=1/3, y=1/3, width=.4, height=.4)
xyListFromGrob(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.