[R] Pie chart

Rui Barradas ruipbarradas at sapo.pt
Fri May 24 22:41:48 CEST 2013


Hello,

Can you please use ?dput to post your data?
The dataset you've posted doesn't make sense, you say you have 4 
components but each row has 5 values, and that includes Group 9, which 
should have only 2 values (or 4 values with 2 zeros).

Rui Barradas

Em 24-05-2013 21:08, Jose Narillos de Santos escreveu:
> I have a 8 Groups composed by A,B, c, D components. The Group 9 is composed
> by the 8 Groups but only components A and C.
>
>
> I want to chart a plot with 1 big plot of the total Groups (from 1 to 8) on
> the right and 8 mini pies on the left composed by the 4 components (the
> size of each pie of group should be bigger or smaller depending on the
> total).
>
> The same structure but below this plot I want to put on the left the plot
> of Group 9 composed by Component A and C and on the left 8 pies composed by
> Component B and C on Each Group.
>
> I don´t know if it is posible.....
>
>
> And If I have explain well...
>
>
>
>
>
> components Component A Component B Component C Component D
> Group 1 1100 1000 100 0 0
> Group 2 728 380 38 10 300
> Group 3 320 200 20 50 50
> Group 4 110 80 8 20 2
> Group 5 75 40 4 5 26
> Group 6 38 30 3 2 3
> Group 7 16 10 1 0 5
> Group 8 10,5 5 0,5 4 1
> Total 2397,5 1745 174,5 91 387
> Group 9 1836 1745 0 91 0
>
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list