grid.metapost {metapost} | R Documentation |
Draw a MetaPost curve.
Description
Draw a MetaPost curve in grid graphics.
Usage
## S3 method for class 'mppath'
metapostGrob(x, gp = gpar(), name = NULL, digits=2, ...)
## S3 method for class 'mpcontrols'
metapostGrob(x, gp = gpar(), name = NULL, ...)
## S3 method for class 'mpcontrolList'
metapostGrob(x, gp = gpar(), name = NULL, ...)
grid.metapost(...)
Arguments
x |
A MetaPost path, either unsolved (a description generated using
|
gp |
Graphical parameters (from a call to |
name |
A name for the grob that is created. |
digits |
The number of decimal places to use when writing floating point values in MetaPost code. |
... |
Arguments passed to |
Value
metapostGrob
creates a "metapostgrob"
object.
Author(s)
Paul Murrell
See Also
Examples
oldunits <- options(metapost.units="in")
p <- knot(0, 0) + dir(0) + dir(0) + knot(1, 1)
grid.metapost(p)
options(oldunits)
[Package metapost version 1.0-6 Index]