Draws a donut ring on a polygon shape where segments follow polygon edges. The fill shows a proportion (0-1) as filled segments starting from the top vertex.
draw_polygon_donut(
x,
y,
size,
fill,
border_color,
border_width,
alpha = 1,
values = NULL,
colors = NULL,
inner_ratio = 0.5,
bg_color = "gray90",
donut_shape = "square",
show_value = TRUE,
value_size = 8,
value_color = "black",
value_fontface = "bold",
value_fontfamily = "sans",
value_digits = 2,
value_prefix = "",
value_suffix = "",
value_format = NULL,
donut_border_width = NULL,
...
)Node center coordinates (NPC units).
Node radius (NPC units).
Fill color for the donut ring.
Border color.
Border line width.
Transparency (0-1).
Single numeric value (0-1) specifying fill proportion. 0.1 = 10% filled, 0.5 = 50% filled, 1.0 = full ring.
Override fill color (optional).
Ratio of inner to outer radius (0-1). Default 0.5.
Background color for unfilled portion. Default "gray90".
Base polygon shape: "circle", "square", "hexagon", "triangle", "diamond", "pentagon".
Logical: show value in center? Default FALSE.
Font size for center value.
Color for center value text.
Font face for center value.
Font family for center value.
Decimal places for value display.
Text before value.
Text after value.
Custom format function.
Border width for donut ring (NULL = use border_width).