rfortherestofus / omni

RMarkdown template, ggplot2 theme, and table function for OMNI Institute
https://rfortherestofus.github.io/omni/
Other
20 stars 3 forks source link

ggplot gallery: overlapping bars #73

Open OskaratOmni opened 5 months ago

OskaratOmni commented 5 months ago

Reviewer comments:

Not really a comment on the graph but when to use the graph. We normally use overlapping bars to compare two things, when one is part of the other like current number/goal number or sample/population

We don’t need the y-axis because we have data labels

Make data labels bigger

For colors, normally we make the inside bar an OMNI color and then the outside bar a light gray

I think the bars could also be thinner

dgkeyes commented 5 months ago

Ok, all set on this:

image

I decided to flip the axes to make this horizontal. The labels were being clipped otherwise. See it live: https://stupendous-biscuit-9f1c75.netlify.app/ggplot/graph_overlapping_bars.html