Base R Graph Parameters: a Cheatsheet


This post aims to remind the options offered to customize a graph in base R. Understand in a sec how to use lwd, pch, type, lty, cex, and more.

Base R offers many option to customize the chart appearance. Basically everthing is doable with those few options:



  • cex → shape size
  • lwd → line width
  • col → control colors
  • lty → line type
  • pch → marker shape
  • type → link between dots




Contact

This document is a work of the statistics team in the Biostatistics and Medical Information Department at Saint-Louis Hospital in Paris (SBIM).
Based on The R Graph Gallery by Yan Holtz.

SBIM