Lesson 16: Visualizing Data II - Errorbars and Ribbons

Overview Section

In this chapter we'll continue working on scatterplots, but we'll focus on several enhancements and manipulations that may be useful. Note that these are not specific to scatterplots, but we will demonstrate them in the context of scatterplots.


Upon completion of this lesson, you should be able to:

  • Add errorbars to plots
  • Draw arbitrary polygons on charts
  • Use the function polygon() to show error ribbons
  • Use errorbars or ellipses to show error in two dimensions
  • Reverse axes on a plot

The R code file and data files for this lesson can be found on the Essential R - Notes on learning R page.