ggplot dodged vs faceted bar chart
I’ve been bowling once per year at a charity event for the last few years and have kept track of the outcomes to share my group. I used ggplot2 to create a bar chart for the scores. Below are two graphs, one is dodged, the other is faceted. There’s no right way here, but you can see the code and decide for yourself which is more aesthetically pleasing.
First is the dodged one…
And next is the faceted one…
The color is redundant in the faceted one, since there are labels for the game number. I kept the color in to make comparison with the dodged one easier.
Here’s the code to produce these two graphs.
To leave a comment
for the author, please follow the link and comment on their blog: Stats and things
offers daily e-mail updates
news and tutorials
on topics such as: Data science
, Big Data, R jobs
, visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook