This is the underlying grob constructor for geom_shape()
. It is exported
for others to use but with limited support
Arguments
- 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
x
andy
into multiple polygons. All locations with the sameid
belong to the same polygon.- id.lengths
A numeric vector used to separate locations in
x
andy
into multiple polygons. Specifies consecutive blocks of locations which make up separate polygons.- expand
An expansion size to expand each shape with, given in units or a numeric refering to
default.units
- radius
The corner radius to apply to each shape, given in units or a numeric refering to
default.units
- default.units
A string indicating the default units to use if
x
,y
,width
, orheight
are only given as numeric vectors.- name
A character identifier.
- gp
An object of class
"gpar"
, typically the output from a call to the functiongpar
. This is basically a list of graphical parameter settings.- vp
A Grid viewport object (or NULL).