A polygon is specified with an obpoint that contains at least 3 points, the start and the end. Any number of intermediate points are possible.
Usage
ob_polygon(
p = class_missing,
label = class_missing,
vertex_radius = class_missing,
alpha = class_missing,
color = class_missing,
fill = class_missing,
linewidth = class_missing,
linetype = class_missing,
style = class_missing,
...
)
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 ggplot2::geom_polygon 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
ggplot2::geom_polygon
.