This tutorial describes how to use the R software and the ggplot2 package to create an index chart with error bars. There are several types of error bars that can only be created using the following functions: Teeth growth data used. It describes the effect of vitamin C on tooth growth in guinea pigs.