Scatterplots in Base R

Here we introduce scatterplots in base R. The codes are simple, but you should also remember the options that make the plots more informative, like adding colors, legends, and error bars.

Continuous Data

This section describes:

  • multiple data sets on one plot;
  • error bars;
  • adding noise;
  • multiple graphs on one image; and
  • pairwise relationships.


Source: K. Black, https://www.cyclismo.org/tutorial/R/intermediatePlotting.html
Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License.