With the following code
A2c%>%
group_by (maritalStatus, Geschlecht)%>%
summarise (nbr_total=n(), nbr_adipos=sum(Adipös))%>%
mutate( adipos_prozent = 100 * nbr_adipos / nbr_total )%>%
filter (maritalStatus != "Refused")%>%
ggplot
geom_col(aes(x=maritalStatus, y= adipos_prozent, color = Geschlecht, fill=Geschlecht))
theme(axis.text.x = element_text(angle = 90))
labs(y = "% Adipöser", x = "Marital Status")
As you can see the bars are now nicely displayed. (Don't look at the numbers, they are fake)