To make bar plots with error bars in R using ggplot2, we need to create a new dataset with mean and sd and to use the geom_errorbar function.