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
)A grob of class shape or, of expand and radius are 0 a
regular polygon grob
A numeric vector or unit object specifying x-locations.
A numeric vector or unit object specifying y-locations.
A numeric vector used to separate locations in x and
y into multiple polygons. All locations with the same
id belong to the same polygon.
A numeric vector used to separate locations in x and
y into multiple polygons. Specifies consecutive blocks of
locations which make up separate polygons.
An expansion size to expand each shape with, given in units
or a numeric refering to default.units
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 x, y, width, or height
are only given as numeric vectors.
A character identifier.
An object of class "gpar", typically the output
from a call to the function gpar. This is basically
a list of graphical parameter settings.
A Grid viewport object (or NULL).