I have a data set, which I have used to make a scatter plot and I would like to assign three different colors to the data points within three different regions, based on the
Also, the "classic" findInterval:
findInterval
col = c("red", "black", "purple")[findInterval(x, v = c(0,3,1549))]