Description Usage Arguments Value Author(s) See Also Examples
Draw a MetaPost figure in grid graphics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## S3 method for class 'mppath'
figureGrob(figure,
x = unit(0.5, "npc"), y = unit(0.5, "npc"),
width = unit(1, "npc"), height = unit(1, "npc"),
just = "centre",
default.units = "npc",
expansion = 0, xscale = NULL, yscale = NULL,
distort = FALSE, clip = FALSE,
gp = gpar(), name = NULL, digits=2, ...)
## S3 method for class 'mpfigure'
figureGrob(figure,
x = unit(0.5, "npc"), y = unit(0.5, "npc"),
width = unit(1, "npc"), height = unit(1, "npc"),
just = "centre",
default.units = "npc",
expansion = 0, xscale = NULL, yscale = NULL,
distort = FALSE, clip = FALSE,
gp = gpar(), name = NULL, ...)
grid.figure(...)
|
figure |
A MetaPost path, either unsolved (a description generated using
|
x, y, width, height, just, default.units |
The location, size, and justification of the figure. |
expansion |
A factor to extend the scales of the figure (to create an empty margin around the figure). |
xscale, yscale |
Override the scales used to draw the figure; by default, these are chosen to encompass the figure (control points). |
distort |
Should the aspect ratio of the original figure be retained. |
clip |
Should drawing be clipped to the bounds of the figure (as defined by the scales). |
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 Figure code. |
... |
Arguments passed to |
figureGrob
creates a "figuregrob"
object.
Paul Murrell
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.