plots

How to plot grouped data in R using ggplot2

Understanding how outcomes vary based on membership to different groups is useful across many contexts. For instance, it is important to know how the proportion of people who check social media or buy cigarettes at least once a day varies across gender and socioeconomic status.