I'm new to R, but I'm doing grouped bar plots to show the partisan composition of legislatures. In the attached example, I divided each party by how many MPs it has in the upper and lower chambers.
However, there are a few parties which have representatives in only one chamber (e.g, PCH only has in the Chamber of Deputies and not in the Senate). Given that, its bar is wider than the others --it has the double size--, while the Deputies bar should remain with the same width and the Senators bar be "0".
How can I solve this?
I appreciate your comments in advance!
PS: I used the following code:
ggplot(data, aes(Party, fill=Chamber)) +
geom_bar(position= "dodge") +
labs(x= "Political party",
y = "Count",
title = "Paraguayan Congress' composition",
subtitle = "2013 elections") +