ob_polygon | R Documentation |
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.
ob_polygon(
p = S7::class_missing,
label = character(0),
vertex_radius = numeric(0),
alpha = numeric(0),
color = character(0),
fill = character(0),
linewidth = numeric(0),
linetype = numeric(0),
style = S7::class_missing,
id = character(0),
...
)
p |
|
label |
A character, angle, or |
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 |
id |
character string to identify object |
... |
< |
If you wish to specify multiple polygons, you must supply a list of ob_point
objects. When plotted, the ob_polygon function uses the ggforce::geom_shape
function to create the geom.
ob_polygon object
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.