Ggplot2

Simple Labelled Barchart

Sometimes, a simple side-by-side/comparative bar plot (with labels) is all that is needed to get your point across. For that, Excel can easily plot that in a few seconds with minimum fuss (see figure below). Now replicating that in R seems pretty straightforward. However, several small details require some manual specification. First, let’s provide some data to plot: x <- c(-1, 0, 1) Black <- c(23.6, 21.4, 19.4) White <- c(15.