Renders a node as a donut chart with an inner hole. The donut shows a fill proportion (0-1) as an arc starting from 12 o'clock.
draw_donut_node_base(
x,
y,
size,
values,
colors = NULL,
default_color = NULL,
inner_ratio = 0.5,
bg_color = "gray90",
center_color = "white",
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 arc, 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".
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 ("plain", "bold", "italic", "bold.italic").
Font family for center value ("sans", "serif", "mono").
Decimal places for value display.
Text before value (e.g., "$").
Text after value (e.g., "%").