vertical line in ggplot2 code example Example: vertical line in ggplot2 + geom_vline(xintercept = 3, linetype="dotted", color = "blue", size=1.5)