[R] pie initial angle
ggrothendieck at gmail.com
Tue May 29 13:05:13 CEST 2007
Not sure I understand what you want but the clockwise= argument
of pie determines whether the slice is drawn clockwise or counter
On 5/29/07, Adrian Dusa <dusa.adrian at gmail.com> wrote:
> Dear all,
> I'd like to produce a simple pie chart for a customer (I know it's bad but
> 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:
> pie(c(60, 40))
> pie(c(80, 20))
> present the slices in different directions.
> 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?
> 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 http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help