I found several posts describing how to create coloured rectangles or polygons in R plots. However, they all seem to rely on analytical expressions for the lines or curves