shapeGrob | R Documentation |
This is the underlying grob constructor for geom_shape()
. It is exported
for others to use but with limited support
shapeGrob(
x = c(0, 0.5, 1, 0.5),
y = c(0.5, 1, 0.5, 0),
id = NULL,
id.lengths = NULL,
expand = 0,
radius = 0,
default.units = "npc",
name = NULL,
gp = gpar(),
vp = NULL
)
x |
A numeric vector or unit object specifying x-locations. |
y |
A numeric vector or unit object specifying y-locations. |
id |
A numeric vector used to separate locations in |
id.lengths |
A numeric vector used to separate locations in |
expand |
An expansion size to expand each shape with, given in units
or a numeric refering to |
radius |
The corner radius to apply to each shape, given in units
or a numeric refering to |
default.units |
A string indicating the default units to use
if |
name |
A character identifier. |
gp |
An object of class |
vp |
A Grid viewport object (or NULL). |
A grob of class shape
or, of expand
and radius
are 0
a
regular polygon grob
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.