polyminkowski | R Documentation |
This function generates the Minkowski Sum of two sets of coordinates.
polyminkowski(A, B, ...)
## S3 method for class 'grob'
polyminkowski(A, B, closed=isClosedShape(B),
reduceA = "union",
reduceB = "union",
...)
## S3 method for class 'gList'
polyminkowski(A, B, closed=isClosedShape(B),
reduceA = "union",
reduceB = "union",
...)
## S3 method for class 'gPath'
polyminkowski(A, B, closed,
strict=FALSE, grep=FALSE, global=FALSE,
reduceA = "union",
reduceB = "union",
...)
## S3 method for class 'character'
polyminkowski(A, B, closed,
strict=FALSE, grep=FALSE, global=FALSE,
reduceA = "union",
reduceB = "union",
...)
A |
A set of coordinates describing a pattern shape. Or a grob, gList, or a gPath (or a character value) identifying a grob that has already been drawn from which coordinates are generated. |
B |
A set of coordinates describing a path shape. Or a grob, gList, or a gPath (or a character value) identifying a grob that has already been drawn from which coordinates are generated. |
closed |
A logical value indicating whether the |
reduceA , reduceB |
A character value describing the operation to be used if either
|
strict , grep , global |
Arguments controlling the interpretation of the gPath
(passed to |
... |
Arguments used by methods. |
The shape described by the pattern coordinates is added to the shape described by the path coordinates.
The result is a new set of coordinates.
Paul Murrell
grid.minkowski
c <- circleGrob(x=0, y=0, r=.1)
r <- rectGrob(width=.5, height=.5)
polyminkowski(c, r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.