[R] Odp: pie initial angle
petr.pikal at precheza.cz
Tue May 29 13:30:06 CEST 2007
r-help-bounces at stat.math.ethz.ch napsal dne 29.05.2007 12:53:14:
> Dear all,
> I'd like to produce a simple pie chart for a customer (I know it's bad
> they insist), and I have some difficulties setting the initial angle.
> For example:
> pie(c(60, 40), init.angle=14)
> pie(c(80, 20), init.angle=338)
> both present the slices in the same direction, where:
I presume you misunderstand init angle. Above statements points an arrow
of both slices to the similar direction but slices starts at different
> pie(c(60, 40))
> pie(c(80, 20))
> present the slices in different directions.
The arrow slices point to different direction **but** they both **start**
at the same initial angle 0 deg.
> I read everything I could about init.angle argument, I even played with
> various formulas to compute it, but I just can't figure it out.
> How can I preserve the desired *direction* of the slices?
You probably need to compute initial angle based on proportions in your
pie chart (If you really want each pie chart starting at different
> Many thanks in advance,
> Adrian Dusa
> Romanian Social Data Archive
> 1, Schitu Magureanu Bd
> 050025 Bucharest sector 5
> Tel./Fax: +40 21 3126618 \
> +40 21 3120210 / int.101
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help