Edits to donut pie chart

57 Views Asked by At

I am trying to add a legend, show counts not percentages next to the variable in the chart, and potentially have the percentages listed in the legend with the corresponding variable rounded to the nearest whole number.

This is what I tried:

PieDonut(PD, aes(Field, Status, count=n), explode=1, explodeDonut=TRUE, labelposition=1)

and this was the result

enter image description here

Here is the data:

enter image description here

0

There are 0 best solutions below