[R] Parliament Seats Graph
jim at bitwrit.com.au
Fri Sep 12 12:25:26 CEST 2014
On Mon, 8 Sep 2014 10:22:03 PM Stefan Petersson wrote:
> Is there any package (or homegrown function) that can produce
> "Parliament Seats Graph"? I'm referring to the nice looking concentric
> half circles of colored "seats" as seen on Wikipedia (for example).
> I can pretty easily plot the points and color them. But I can't group
> the colored points in sectors, as seen on the example.
> Found here (on the right, a bit down):
I can see how you would plot the points going from right to left (the easy
way), by plotting the next point on the arc with the least increase in
angle from the last point plotted. If this is the way you have worked out, I
think all that you have to do is to turn the party affiliation into a factor (if
it is not already) and plot the points by the sorted numeric value of the
factor. You will probably want to adjust the levels to some political
dimensions before doing the sort.
More information about the R-help