powered by
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())
xyListPath(x, rule, name=NULL, gp=gpar()) xyListPolygon(x, name=NULL, gp=gpar()) xyListLine(x, name=NULL, gp=gpar())
The result is a grob.
A set of coordinates (e.g., from polyclip or trim).
polyclip
trim
A fill rule: "winding" or "evenodd".
"winding"
"evenodd"
A name for the resulting grob.
Graphical parameter settings for the resulting grob.
Paul Murrell
Following the addition of the xyListFromGrob function, the *To*() forms are preferred.
xyListFromGrob
*To*()
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)
Run the code above in your browser using DataLab