0
relationship_bw_Polattrev_fbse_plot<-ggplot(data = anes_sm, aes(x= polattrev_recoded,  fill=fbse_recoded)) +
  geom_bar(position="dodge") +
  labs(x = 'How often do you pay attention to what’s going on in government and politics?',
       y= 'Frequency',
       title = 'Relationship between attention to politics and government and if sees politics online')+
  theme_bw()
relationship_bw_Polattrev_fbse_plot

I want to change the label of my: fill= variable Also how do I add numbers to the individual bars?

Phil
  • 5,491
  • 3
  • 26
  • 61
Pat B
  • 1
  • Add a `fill` argument inside `labs()`. Add `geom_text()` to add values. https://stackoverflow.com/questions/6644997/showing-data-values-on-stacked-bar-chart-in-ggplot2 or https://stackoverflow.com/questions/33079500/geom-text-with-dodged-barplot – Phil Oct 31 '21 at 16:41

0 Answers0