xyListPath | R Documentation |
This function generates a grob from a set of coordinates (a list of (x,y) lists).
xyListToPath(x, rule=, name=NULL, gp=gpar())
xyListToPolygon(x, name=NULL, gp=gpar())
xyListToLine(x, name=NULL, gp=gpar())
xyListPath(x, rule, name=NULL, gp=gpar())
xyListPolygon(x, name=NULL, gp=gpar())
xyListLine(x, name=NULL, gp=gpar())
x |
A set of coordinates (e.g., from |
rule |
A fill rule: |
name |
A name for the resulting grob. |
gp |
Graphical parameter settings for the resulting grob. |
Following the addition of the xyListFromGrob
function,
the *To*()
forms are preferred.
The result is a grob.
Paul Murrell
polyclip
r <- rectGrob(x=1/3, y=1/3, width=.4, height=.4)
c <- circleGrob(x=2/3, y=2/3, r=.2)
coords <- polyclip(r, c)
xyListPath(coords)
xyListLine(coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.