I created this small data frame to mimic the one I'm working with.
df <- data.frame( sex = c('male', 'female', 'female', 'female', 'male', 'male', 'female', 'male'),
food = c("hamburger", "hamburger", "pizza", 'pizza', 'hotdog', 'pizza', 'hamburger', 'pizza'))
When I make a grouped bar chart one of the bars takes up twice as much room because one of the variables is zero. How can I change the width of that single bar so it is the same as the others?
ggplot(df, aes(x = food, fill = sex)) + geom_bar(position = 'dodge')


