I want to create a different kind of pie chart, in which I can specify not only the percent that goes to each segment (x \in [0,1]), but also how far each pie segment's radius extends out. (The idea is to display a second dimension which is the product of the x and some other variable.) I also need to fill and label the segments. This would be easiest if the function did the labeling itself or returned the mid point of each segment's outer arc.
(If no one has written this, the primitive function that I need is a filled circle segment with center x,y extending to radius r from angle a1 to a2. draw.arc()
from plotrix looked good, but col does not fill [it sets only the outer color].)
Do such function(s) already exist or do I need to write it myself? Pointers appreciated.