A polygon is specified with an ob_point that contains at least 3 points, the start and the end. Any number of intermediate points are possible.
Arguments
- p
ob_point or list of ob_point objects
- label
A character, angle, or label object
- vertex_radius
A numeric or unit vector of length one, specifying the corner radius
- alpha
numeric value for alpha transparency
- color
character string for color
- fill
character string for fill color
- linewidth
Width of lines
- linetype
type of lines
- style
Gets and sets the styles associated with polygons
- ...
<
dynamic-dots
> properties passed to style
Details
If you wish to specify multiple polygons, you must supply a list of ob_points. When plotted, the ob_polygon function uses the ggforce::geom_shape function to create the geom.
Slots
length
The number of polygons in the ob_polygon object
tibble
Gets a tibble (data.frame) containing parameters and styles used by
ggforce::geom_shape
.