Using Conditional Statements to Change the Color of Data Points

后端 未结 4 836
攒了一身酷
攒了一身酷 2021-01-13 08:39

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

4条回答
  •  感情败类
    2021-01-13 09:18

    Also, the "classic" findInterval:

    col = c("red", "black", "purple")[findInterval(x, v = c(0,3,1549))]

提交回复
热议问题