Creating Bar Chart of Marijuana Use by Age Group and Sex

You could try facet_wrap or facet_grid

ggplot(aes(x = age.cat,
             y = 100 * (..count..) / sum(..count..),
             fill = DUQ200)) +
geom_bar(position = 'dodge') +
facet_grid(vars(gender))
1 Like