Open akhst7 opened 1 year ago
Thanks for your kind advice!
ggpie
is designed to set through factor levels to deal with diverse needs. In your example, you only need to add single-line code to meet your needs, so it's not very complicated in my opinion.
YB
@showteeth,
I have a following count table (data.table obj) ;
I created a pie chart by following;
A resulting figure is as follows;
It looks great except that I want a clockwise direction from the largest to the smallest. I could sort
p
according to the decreasing order ofcount
, as follows;I get a following pie;
Labelling flipped but not the pie. In order to get the right pie, I have to a following;
Could you possible add the easier option to reverse the order of pie slices and corresponding legend ?
Thanks again.