gridCoords {grid} | R Documentation |
Create Sets of Coordinates for Grid Grobs
Description
These functions support the development of grobPoints
methods for custom grobs.
Usage
gridCoords(x, y)
gridGrobCoords(x, name, rule = NULL)
gridGTreeCoords(x, name)
emptyCoords
emptyGrobCoords(name)
emptyGTreeCoords(name)
isEmptyCoords(coords)
Arguments
x |
For |
y |
A numeric vector. |
name |
A character value. |
rule |
A fill rule, either |
coords |
A set of grob coordinates (as generated by |
Details
These functions help the developer of a grobPoints
method
to generate the coordinates from a custom grob.
The emptyCoords
object can be used to return a "null"
result (e.g., when asking for closed
coordinates on an
open line) and the isEmptyCoords
function can be used to check for
"null" results.
Value
For gridCoords
a "GridCoords"
object.
For gridGrobCoords
a "GridGrobCoords"
object.
For gridGTreeCoords
a "GridGTreeCoords"
object.
Author(s)
Paul Murrell