xyListFromGrob | R Documentation |
This function generates a set of coordinates (a list of (x,y) lists) from a grob.
xyListFromGrob(x, op = "union", closed = TRUE, ...)
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 |
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.