I have this graphic in ggplot2 and I would like to add in graph counts in each segment or percentage maybe. Counts are in table here
kod
is factor of 5 groups
stamg
is factor 0/1
ggplot(databak, aes(factor(kod), fill = factor(stamg))) +
geom_bar(position = "fill")