Renders a donut on a polygon shape where segments follow polygon edges. The donut shows a fill proportion (0-1) as filled segments starting from the top.
draw_polygon_donut_node_base(
x,
y,
size,
values,
colors = NULL,
default_color = NULL,
inner_ratio = 0.5,
bg_color = "gray90",
center_color = "white",
donut_shape = "square",
border.col = "black",
border.width = 1,
donut_border.width = NULL,
outer_border.col = NULL,
border.lty = 1,
show_value = TRUE,
value_cex = 0.8,
value_col = "black",
value_fontface = "bold",
value_fontfamily = "sans",
value_digits = 2,
value_prefix = "",
value_suffix = ""
)Node center coordinates.
Outer radius.
Single numeric value (0-1) specifying fill proportion. 0.1 = 10% filled, 0.5 = 50% filled, 1.0 = full ring.
Fill color for the donut ring.
Fallback color when colors is NULL.
Ratio of inner to outer radius (0-1). Default 0.5.
Background color for unfilled portion. Default "gray90".
Base polygon shape: "square", "hexagon", "triangle", etc.
Border color.
Border line width.
Border width for donut ring (NULL = use border.width).
Logical: show value in center? Default FALSE.
Text size for center value.
Text color for center value.
Font face for center value.
Font family for center value.
Decimal places for value display.
Text before value (e.g., "$").
Text after value (e.g., "%").