This R graphics tutorial describes how to change line types in R for plots created using either the R base plotting functions or the ggplot2 package.