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
Just use nested ifelses:
ifelse
plot(...., col=ifelse(x < 3, "red", ifelse(x > 1549, "purple", "black")))