I have this table:
Tip_migrene Populacija lvl2 Troskovi
1 EM Svi PZZ 574345839
2 EM Svi SZZ 1151543136
3 EM Svi bolnicko_lecenje 69967985
4 EM Svi dijagnosticke_procedure 1983183163
5 EM Svi testovi_krvi 57333171
6 HM Svi PZZ 107825242
7 HM Svi SZZ 174517582
8 HM Svi bolnicko_lecenje 9822562
9 HM Svi dijagnosticke_procedure 286431165
10 HM Svi testovi_krvi 13668088
and I tried to make a donut using PieDonut, but it only shows percentages, and I need to show values instead. This is the code I used and the donut I got:
PieDonut(T_Total_EM_vs_CM, aes(Tip_migrene, lvl2, count=Troskovi),
title = "EM vs. HM (Svi)")

Is it possible to show values instead of percentages in this PieDonut? (Do I possibly need to format values through some of the parameters of the PieDonut?)
Also, is it possible to put the total amount (sum) of all the values in the center of the donut?
This is the best we can achieve with these large labels. Basically, we create the labels beforehand, and would turn off the percentages. I am not able to put the total at the middle of the graph, so I put it in the title. If you want more flexibility, you need to experiment with
ggplot2.Created on 2024-03-26 with reprex v2.0.2