metapost {metapost} | R Documentation |
Generate a MetaPost file from a MetaPost path.
metapost(x, file = "fig.mp", digits=2)
x |
A MetaPost path, as produced from |
file |
The name of the file to produce. If |
digits |
The number of decimal places to use when writing floating point values in MetaPost code. |
The MetaPost code is returned invisibly.
Paul Murrell
p <- knot(0, 0) + dir(0) + dir(0) + knot(1, 1)
mpcode <- metapost(p, NULL)
mpcode