Draw a donut chart node showing a fill proportion (0-1) as an arc. The fill starts from 12 o'clock (top) and fills clockwise.
draw_donut(
x,
y,
size,
fill,
border_color,
border_width,
alpha = 1,
values = NULL,
colors = NULL,
inner_ratio = 0.5,
bg_color = "gray90",
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 arc, 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".
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 (e.g., "$").
Text after value (e.g., "%").
Custom format function (overrides digits).
Border width for donut ring (NULL = use border_width).