Line Types in R: lty Values & ggplot2 linetype

The reference for line types in R. See the lty values 0 to 6 — blank, solid, dashed, dotted, dotdash, longdash, twodash — with their names and custom hex patterns, then set them in base R with lty and lwd, and in ggplot2 with the linetype aesthetic and scale_linetype_manual().